[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r8428: Fix a bogus free() in eventdns.c. Bug reported by xiando. (tor/trunk/src/or)



Author: nickm
Date: 2006-09-19 16:45:20 -0400 (Tue, 19 Sep 2006)
New Revision: 8428

Modified:
   tor/trunk/src/or/eventdns.c
Log:
Fix a bogus free() in eventdns.c.  Bug reported by xiando.

Modified: tor/trunk/src/or/eventdns.c
===================================================================
--- tor/trunk/src/or/eventdns.c	2006-09-19 20:41:31 UTC (rev 8427)
+++ tor/trunk/src/or/eventdns.c	2006-09-19 20:45:20 UTC (rev 8428)
@@ -1566,7 +1566,7 @@
 
 	return req;
  err1:
-	free(req->request);
+	free(req);
 	return NULL;
 }