mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
fixed memory leak
This commit is contained in:
@@ -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); */
|
||||
|
||||
Reference in New Issue
Block a user