Skip to content

Commit d1feeed

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix memory leak in php_imap_mutf7()
2 parents d27dc5c + 730fdc7 commit d1feeed

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
@@ -3086,7 +3086,8 @@ static void php_imap_mutf7(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */
30863086
if (out == NIL) {
30873087
RETURN_FALSE;
30883088
} else {
3089-
RETURN_STRING((char *)out);
3089+
RETVAL_STRING((char *)out);
3090+
fs_give((void**) &out);
30903091
}
30913092
}
30923093
/* }}} */

0 commit comments

Comments
 (0)