Skip to content

Commit f5650b2

Browse files
committed
fix mixed up free/return order
1 parent 7e59304 commit f5650b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ibm_db2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5982,8 +5982,8 @@ PHP_FUNCTION(db2_result)
59825982
}
59835983
rc = _php_db2_get_data2(stmt_res, col_num+1, SQL_C_CHAR, (void*)out_char_ptr, in_length, in_length+1, &out_length);
59845984
if (rc == SQL_ERROR) {
5985-
RETURN_FALSE;
59865985
efree(out_char_ptr);
5986+
RETURN_FALSE;
59875987
}
59885988
RETVAL_STRINGL(out_char_ptr, out_length);
59895989
efree(out_char_ptr);

0 commit comments

Comments
 (0)