diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-06-06 14:09:12 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-06-06 14:09:12 +0000 |
| commit | 2f26d8d7aee1133444def44a135cac47a6c29cef (patch) | |
| tree | 3c9aaf00d989b9e8bf0af950267c64ade803c2d6 /main/streams/memory.c | |
| parent | 704ed9625c1cf9c532f2ba4a96e16deb5a3dcbdf (diff) | |
| download | php-git-2f26d8d7aee1133444def44a135cac47a6c29cef.tar.gz | |
MFH: don't leak when decoding failed
Diffstat (limited to 'main/streams/memory.c')
| -rw-r--r-- | main/streams/memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |
