In nessusd 2.0.12 a leak is fixed with the following patch. Basically make sure the previous incarnation of the static pointer isn't overwritten.

Thanks,
-Lance

==== nessus-libraries/libnessus/scanners_utils.c#3 - nessus-libraries/libnessus/scanners_utils.c ====
@@ -161,6 +161,12 @@


 if(strcmp(origexpr, "default") == 0)
  {
+  if (last_expr != NULL) {
+   efree(&last_expr);
+  }
+  if (last_ret != NULL) {
+   efree(&last_ret);
+  }
    last_expr = estrdup(origexpr);
    last_ret  = get_tcp_svcs(&last_num);
  if ( len != NULL )

_______________________________________________
Nessus mailing list
[EMAIL PROTECTED]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to