From 2976c867a13a25c0540e413527bc47fa60fd6d98 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Wed, 15 Oct 2008 13:34:45 +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 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); } -- 2.50.1