You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ext/zip: memory leak when zip cancel callback bails out.
Fix#22176
A cancel callback that throws during the implicit zip_close() in the
shutdown destructor triggers a zend_bailout that longjmps through
libzip, skipping its free(filelist). Wrap the call in zend_try/zend_catch
and cancel on bailout so libzip can unwind and clean up.
While at it, apply the same guard to the progress callback, which is
invoked from libzip the same way and is prone to the identical leak.
closeGH-22177
0 commit comments