I haven't see this addes to head for 2.0.12.. and only saw one patch for what I
thought might need three different files patched.
-----Original Message-----
From: Michael Scheidell On Behalf Of Lance Uyehara
Sent: Wednesday, October 27, 2004 1:47 PM
To: [EMAIL PROTECTED]
Subject: Re: Turning on mem leak detection
In nessusd 2.0.12 a leak can be fixed with the following patch: I suspect
the same patch will be required in libnessus/arglists.c, but I haven't
checked it yet.
==== nessus-core/nessusd/pluginscheduler.c#2 -
nessus/nessus-core/nessusd/pluginscheduler.c ====
@@ -134,6 +134,15 @@
nc->occurences = 1;
nc->next = cache[h].next;
nc->prev = NULL;
+
+ /*
+ * If we are doubling up on hashes be sure to fix the prev pointer!
Otherwise
+ * cache_dec() won't work properly later.
+ */
+ if (cache[h].next != NULL) {
+ cache[h].next->prev = nc;
+ }
+
cache[h].next = nc;
return nc;
_______________________________________________
Nessus mailing list
[EMAIL PROTECTED]
http://mail.nessus.org/mailman/listinfo/nessus
_______________________________________________
Nessus mailing list
[EMAIL PROTECTED]
http://mail.nessus.org/mailman/listinfo/nessus