From: Antony Dovgal Date: Tue, 6 Jun 2006 14:09:12 +0000 (+0000) Subject: MFH: don't leak when decoding failed X-Git-Tag: php-5.2.0RC1~360 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f26d8d7aee1133444def44a135cac47a6c29cef;p=php MFH: don't leak when decoding failed --- 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; }