From d3ae4fe2d2756baacf3fd310925cfa1bdc309bc5 Mon Sep 17 00:00:00 2001 From: Thomas Punt Date: Sun, 29 Apr 2018 19:04:10 +0100 Subject: [PATCH] Fix potential memory leak in curl extension --- ext/curl/multi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/curl/multi.c b/ext/curl/multi.c index f3c489399b..dd1c436bdd 100644 --- a/ext/curl/multi.c +++ b/ext/curl/multi.c @@ -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); } -- 2.40.0