Skip to content

Commit 19850ec

Browse files
committed
fix missing free on error
1 parent f5650b2 commit 19850ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ibm_db2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6391,6 +6391,7 @@ static void _php_db2_bind_fetch_helper(INTERNAL_FUNCTION_PARAMETERS, int op)
63916391
}
63926392
rc = _php_db2_get_data2(stmt_res, i+1, lob_bind_type, (char *)out_ptr, tmp_length, tmp_length, &out_length);
63936393
if (rc == SQL_ERROR) {
6394+
efree(out_ptr);
63946395
RETURN_FALSE;
63956396
}
63966397

0 commit comments

Comments
 (0)