[Slirp] [Git][slirp/libslirp][master] 2 commits: resolv: fix memory leak when using libresolv

Marc-André Lureau (@elmarco) gitlab at gitlab.freedesktop.org
Tue Aug 24 08:24:30 UTC 2021



Marc-André Lureau pushed to branch master at slirp / libslirp


Commits:
ed5db969 by osy at 2021-08-23T19:57:38-07:00
resolv: fix memory leak when using libresolv

- - - - -
25cd792d by Marc-André Lureau at 2021-08-24T08:24:28+00:00
Merge branch 'libresolv-leak-fix' into 'master'

resolv: fix memory leak when using libresolv

See merge request slirp/libslirp!100
- - - - -


1 changed file:

- src/slirp.c


Changes:

=====================================
src/slirp.c
=====================================
@@ -182,7 +182,7 @@ static int get_dns_addr_libresolv(int af, void *pdns_addr, void *cached_addr,
         }
     }
 
-    res_nclose(&state);
+    res_ndestroy(&state);
     if (!found)
         return -1;
     return 0;



View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/a88d9ace234a24ce1c17189642ef9104799425e0...25cd792d975105680f807e32951c87899901a0b9

-- 
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/a88d9ace234a24ce1c17189642ef9104799425e0...25cd792d975105680f807e32951c87899901a0b9
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20210824/d0ee9b8b/attachment.htm>


More information about the Slirp mailing list