Skip to content

Commit d3ae4fe

Browse files
committed
Fix potential memory leak in curl extension
1 parent 35713ef commit d3ae4fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/multi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ PHP_FUNCTION(curl_multi_info_read)
332332
RETURN_FALSE;
333333
}
334334
if (zmsgs_in_queue) {
335-
zval_dtor(zmsgs_in_queue);
335+
zval_ptr_dtor(zmsgs_in_queue);
336336
ZVAL_LONG(zmsgs_in_queue, queued_msgs);
337337
}
338338

0 commit comments

Comments
 (0)