The source project of this merge request has been removed.
ext: fix resource leaks
Upstream repo is abandoned for the last 10 years so I thought I'd rather push the fixes directly here.
Upstream repo is abandoned for the last 10 years so I thought I'd rather push the fixes directly here.