rpm-software-management / librepo

A library providing C and Python (libcURL like) API for downloading packages and linux repository metadata in rpm-md format
http://rpm-software-management.github.io/librepo/
GNU Lesser General Public License v2.1
75 stars 91 forks source link

Clean up target->curl_handle rather than target->handle #148

Closed jdieter closed 5 years ago

jdieter commented 5 years ago

Cleaning up target->handle causes a segfault when this codepath is run, so this patch fixes it so we clean up target->curl_handle.

The segfault is reported at https://bugzilla.redhat.com/show_bug.cgi?id=1694411 and affects all updates where zchunked metadata is available.

jrohel commented 5 years ago

Thanks for fix.