Skip to content

Commit 7e59304

Browse files
committed
Free when no rows in db2_execute_many
LUW only so slipped by me. I suspect the efree in chaining flag condition should probably be moved as well.
1 parent a5ccc7b commit 7e59304

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ibm_db2.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7776,6 +7776,9 @@ PHP_FUNCTION( db2_execute_many )
77767776
}
77777777
} ZEND_HASH_FOREACH_END();
77787778
} else {
7779+
efree(head_error_list);
7780+
efree(array_data_type);
7781+
efree(data_type);
77797782
RETURN_LONG(0);
77807783
}
77817784
_free_param_cache_list(stmt_res);

0 commit comments

Comments
 (0)