From: Felipe Pena Date: Wed, 15 Oct 2008 13:34:13 +0000 (+0000) Subject: - Fixed possible efree(NULL) X-Git-Tag: BEFORE_HEAD_NS_CHANGE~223 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=faadae148b22debe82559e64b569f29ab118716f;p=php - Fixed possible efree(NULL) --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 7cf0d5942d..a2bdda0072 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -1713,7 +1713,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); }