Browse Source

- Fixed possible efree(NULL)

PECL
Felipe Pena 18 years ago
parent
commit
30173a8ec8
  1. 4
      ext/pgsql/pgsql.c

4
ext/pgsql/pgsql.c

@ -1723,7 +1723,9 @@ static void _php_pgsql_free_params(char **params, int num_params)
if (num_params > 0) {
int i;
for (i = 0; i < num_params; i++) {
efree(params[i]);
if (params[i]) {
efree(params[i]);
}
}
efree(params);
}

Loading…
Cancel
Save