From 2f26d8d7aee1133444def44a135cac47a6c29cef Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 6 Jun 2006 14:09:12 +0000 Subject: [PATCH] MFH: don't leak when decoding failed --- main/streams/memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/streams/memory.c b/main/streams/memory.c index cda930fe2f..0fcc165730 100644 --- a/main/streams/memory.c +++ b/main/streams/memory.c @@ -661,6 +661,7 @@ static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, cha if (base64) { comma = (char*)php_base64_decode((const unsigned char *)comma, dlen, &ilen); if (!comma) { + zval_ptr_dtor(&meta); php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "rfc2397: unable to decode"); return NULL; } -- 2.50.1