diff options
author | Felipe Pena <felipe@php.net> | 2008-10-15 13:34:45 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-10-15 13:34:45 +0000 |
commit | 2976c867a13a25c0540e413527bc47fa60fd6d98 (patch) | |
tree | d9cd6a88a8bdb436c2c7d45d49e3c3bfe86049b6 | |
parent | 208d8e75f157ee1e6a8b9a5919b69ce60c1ffd18 (diff) | |
download | php-git-2976c867a13a25c0540e413527bc47fa60fd6d98.tar.gz |
- Fixed possible efree(NULL)
-rw-r--r-- | ext/pgsql/pgsql.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index feb53b6dcd..aca9fec5d5 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -1201,7 +1201,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); } |