Hi Steven,

while trying to trace the memory leak we discussed several times on IRC,
valgrind complains a lot about uninitialized memory segment in totemip.
Patch in attachment addressed that.

Fabio

PS there a lot more warnings.. this is just one that hits a lot.
Hopefully more patches will follow soon.


Index: exec/totemip.c
===================================================================
--- exec/totemip.c	(revision 1784)
+++ exec/totemip.c	(working copy)
@@ -406,6 +406,7 @@
         memset(&nladdr, 0, sizeof(nladdr));
         nladdr.nl_family = AF_NETLINK;
 
+        memset(&req, 0, sizeof(req));
         req.nlh.nlmsg_len = sizeof(req);
         req.nlh.nlmsg_type = RTM_GETADDR;
         req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST;
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to