Description of problem: valgrind is showing a memory leak from the netlink_init() callpath. Looking at the corresponding netlink-close() method in netcf, it appears it is merely closing the socket, and not free'ing the memory for the libnl handle. Version-Release number of selected component (if applicable): 0.1.4 How reproducible: Always Steps to Reproduce: 1. Run this test program under valgrind #include <netcf.h> #include <stdio.h> int main(int argc, char **argv) { for (int i = 0 ; i < 1000000 ; i++) { struct netcf *netcf = NULL; ncf_init(&netcf, NULL); if (netcf != NULL) { ncf_close(netcf); } } return 0; } 2. Compile and run that as root 3. Actual results: Expected results: Additional info:
Created attachment 373139 [details] Fix free'ing of netlink handle
Cool - saves me from firing up valgrind. Patch committed upstream.
netcf-0.1.5-1.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update netcf'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12472
netcf-0.1.5-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.