]> git.proxmox.com Git - libgit2.git/commit
Fix memory leak in p_getaddrinfo on Amiga
authorRussell Belfer <rb@github.com>
Sat, 16 Feb 2013 00:01:31 +0000 (16:01 -0800)
committerRussell Belfer <rb@github.com>
Sat, 16 Feb 2013 00:01:31 +0000 (16:01 -0800)
commit71d62d3905723c0263ca00a1d68825e2c35fb987
tree8506ebad82ae01d09022893273eb48d61f5ae662
parenta7ed746093f42fd61f38a0a9ea5ef73c45f11efa
Fix memory leak in p_getaddrinfo on Amiga

If gethostbyname() fails on platforms with NO_ADDRINFO, the code
leaks the struct addrinfo that was allocated.  This fixes that
(and a number of code formatting issues in that area of code in
src/posix.c).
src/posix.c