From faadae148b22debe82559e64b569f29ab118716f Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 15 Oct 2008 13:34:13 +0000 Subject: [PATCH] - Fixed possible efree(NULL) --- ext/pgsql/pgsql.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.50.1