]> granicus.if.org Git - libevent/commitdiff
fix another memory leak
authorNiels Provos <provos@gmail.com>
Mon, 10 Sep 2007 01:37:57 +0000 (01:37 +0000)
committerNiels Provos <provos@gmail.com>
Mon, 10 Sep 2007 01:37:57 +0000 (01:37 +0000)
svn:r424

evdns.c

diff --git a/evdns.c b/evdns.c
index 471f42a9a5ec87de0d649a7a13d914526e5cf120..597f109301829310cffd967e54d0bd75ecc3f21c 100644 (file)
--- a/evdns.c
+++ b/evdns.c
@@ -1713,7 +1713,7 @@ server_request_free_answers(struct server_request *req)
                        free(victim->name);
                        if (victim->data)
                                free(victim->data);
-                       /* XXXX free(victim?) -NM */
+                       free(victim);
                        victim = next;
                }
                *list = NULL;