diff options
| author | Mark Musone <musone@php.net> | 1999-09-10 02:37:46 +0000 |
|---|---|---|
| committer | Mark Musone <musone@php.net> | 1999-09-10 02:37:46 +0000 |
| commit | 63243be5ac0d582ba543899983ed03451bce6816 (patch) | |
| tree | b170835f7e1255c772435b55dab978f6d9fd3ac3 /ext/pgsql | |
| parent | 22f066e708e95debf48065563671d78619807651 (diff) | |
| download | php-git-63243be5ac0d582ba543899983ed03451bce6816.tar.gz | |
fixed memory leak
Diffstat (limited to 'ext/pgsql')
| -rw-r--r-- | ext/pgsql/pgsql.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 884eaf9441..a6b8868ee7 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); */ |
