Hello, On Thursday, 2008 May 22 at 10:53:40 +0500, Anton wrote: > Hello! > > Just doing some testuing of NFQUEUE, and noticed that in the > simple case, if I do the following (yes, there is > no "nlif_catch", but anyway) - I'm experiencing a memory > leak for every open - close cycle? > Anything I'm missing? > > struct nlif_handle *h; > h = nlif_open(); > if (h != NULL) { > nlif_query(h); > nfq_get_indev_name(h,tb,agg.iname); > nfq_get_outdev_name(h,tb,agg.oname); > nlif_close(h); > } You should not call nlif_open, nlif_close at each resolution: Information about nlif usage: http://software.inl.fr/trac/wiki/articles/using_nlif Anyway, I will investigate to see what's going on. We definitely should not have a memory leak. BR, -- Eric Leblond INL: http://www.inl.fr/ NuFW: http://www.nufw.org/
Attachment:
signature.asc
Description: Digital signature