From: Felipe Pena Date: Wed, 15 Oct 2008 13:34:45 +0000 (+0000) Subject: - Fixed possible efree(NULL) X-Git-Tag: php-5.2.7RC2~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2976c867a13a25c0540e413527bc47fa60fd6d98;p=php - Fixed possible efree(NULL) --- 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); }