]> granicus.if.org Git - libevent/commitdiff
Eradicated the last free() call. Let mm_free() take care of deallocation.
authorJardel Weyrich <jweyrich@gmail.com>
Wed, 30 Dec 2009 07:03:54 +0000 (05:03 -0200)
committerNick Mathewson <nickm@torproject.org>
Wed, 30 Dec 2009 22:28:05 +0000 (17:28 -0500)
evdns.c

diff --git a/evdns.c b/evdns.c
index 8511c5426d971838ae5070b80b15b7ea0f6908fa..6df9eb7da4c543c813876ea161e6fccd483fdc94 100644 (file)
--- a/evdns.c
+++ b/evdns.c
@@ -2629,7 +2629,7 @@ request_new(struct evdns_base *base, int type, const char *name, int flags,
        if (!req) return NULL;
 
        if (name_len >= sizeof(namebuf)) {
-               free(req);
+               mm_free(req);
                return NULL;
        }