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

Do not unref LrErr_Exception on exit (RhBug:1778854) #180

Closed lukash closed 4 years ago

lukash commented 4 years ago

It seems the reference to a Python exception obtained from PyErr_NewException is borrowed and is not meant to be unreferenced on exit. From valgrind output Python frees the memory allocated for these itself.

https://bugzilla.redhat.com/show_bug.cgi?id=1778854