summaryrefslogtreecommitdiff
path: root/ext/wddx/wddx.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wddx/wddx.c')
-rw-r--r--ext/wddx/wddx.c5
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);