[Rpm-maint] [rpm-software-management/rpm] Fix brown paperbag regression in c223d84fbf1ebb7a862f297e65878a2a7865… (#1459)

Panu Matilainen notifications at github.com
Fri Dec 11 08:17:11 UTC 2020


…3e8e

Only call free on the success path, getaddrinfo() is like most this
type functions and only allocates on success and so, in failure we'd
end up freeing an uninitialized pointer.
Reported by Scott Andrews on rpm-list.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1459

-- Commit Summary --

  * Fix brown paperbag regression in c223d84fbf1ebb7a862f297e65878a2a78653e8e

-- File Changes --

    M build/build.c (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1459.patch
https://github.com/rpm-software-management/rpm/pull/1459.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1459
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201211/28e91170/attachment.html>


More information about the Rpm-maint mailing list