From 63243be5ac0d582ba543899983ed03451bce6816 Mon Sep 17 00:00:00 2001 From: Mark Musone Date: Fri, 10 Sep 1999 02:37:46 +0000 Subject: [PATCH] fixed memory leak --- ext/pgsql/pgsql.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 884eaf94413..a6b8868ee7d 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -940,6 +940,7 @@ static void php3_pgsql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type) field_name = PQfname(pgsql_result,i); add_assoc_stringl(return_value, field_name, data, data_len, should_copy); } + efree(element); } else { /* NULL field, don't set it */ /* add_get_index_stringl(return_value, i, empty_string, 0, (void **) &pval_ptr); */