]> granicus.if.org Git - php/commitdiff
Fix potential memory leak in curl extension
authorThomas Punt <tpunt@php.net>
Sun, 29 Apr 2018 18:04:10 +0000 (19:04 +0100)
committerThomas Punt <tpunt@php.net>
Sun, 29 Apr 2018 18:04:10 +0000 (19:04 +0100)
ext/curl/multi.c

index f3c489399be66f4a478c949c7d3f01d6edd56974..dd1c436bdd12e839c3c347cbd310d61fe7aa4d6e 100644 (file)
@@ -332,7 +332,7 @@ PHP_FUNCTION(curl_multi_info_read)
                RETURN_FALSE;
        }
        if (zmsgs_in_queue) {
-               zval_dtor(zmsgs_in_queue);
+               zval_ptr_dtor(zmsgs_in_queue);
                ZVAL_LONG(zmsgs_in_queue, queued_msgs);
        }