Skip to content

Commit 4591cb8

Browse files
committed
Merge branch 'PHP-7.4' into master
* PHP-7.4: Fix memory leak in php_imap_mutf7()
2 parents 2bf2ced + d1feeed commit 4591cb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/imap/php_imap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2570,7 +2570,8 @@ static void php_imap_mutf7(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */
25702570
if (out == NIL) {
25712571
RETURN_FALSE;
25722572
} else {
2573-
RETURN_STRING((char *)out);
2573+
RETVAL_STRING((char *)out);
2574+
fs_give((void**) &out);
25742575
}
25752576
}
25762577
/* }}} */

0 commit comments

Comments
 (0)