diff options
author | Felipe Pena <felipe@php.net> | 2008-11-20 14:48:41 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-11-20 14:48:41 +0000 |
commit | 8258b703c5b5245e75280e7242ba43448294763e (patch) | |
tree | 944b2c6652d356d8363b6c4017dcec3b81062764 /ext/wddx | |
parent | d41c3506f663fa86e77a62a59fbf130e4b09fa43 (diff) | |
download | php-git-8258b703c5b5245e75280e7242ba43448294763e.tar.gz |
- MFH: Fixed memory leak in wddx_add_vars()
Diffstat (limited to 'ext/wddx')
-rw-r--r-- | ext/wddx/wddx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 3586d201b5..a4dfdcbd4d 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -1278,7 +1278,10 @@ PHP_FUNCTION(wddx_add_vars) return; } - ZEND_FETCH_RESOURCE(packet, wddx_packet *, &packet_id, -1, "WDDX packet ID", le_wddx); + if (!ZEND_FETCH_RESOURCE_NO_RETURN(packet, wddx_packet *, &packet_id, -1, "WDDX packet ID", le_wddx)) { + efree(args); + RETURN_FALSE; + } if (!packet) { efree(args); |