Skip to content

Commit 0aafa2d

Browse files
committed
Remember to free value from db2_get_option
1 parent fac7a86 commit 0aafa2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ibm_db2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7374,7 +7374,8 @@ PHP_FUNCTION(db2_get_option)
73747374
php_error_docref(NULL, E_WARNING, "Incorrect option string passed in");
73757375
RETURN_FALSE;
73767376
}
7377-
RETURN_STRINGL(value, val_len);
7377+
RETVAL_STRINGL(value, val_len);
7378+
efree(value);
73787379
} else {
73797380
php_error_docref(NULL, E_WARNING, "Supplied parameter is invalid");
73807381
RETURN_FALSE;

0 commit comments

Comments
 (0)