On Sun, Mar 19, 2017 at 10:01:10PM +0800, Liping Zhang wrote: > From: Liping Zhang <zlpnobody@xxxxxxxxx> > > After inputting the following test command, core dump happened: > # ./examples/nfct-helper-add test 1 > *** Error in > `.../libnetfilter_cthelper/examples/.libs/lt-nfct-helper-add': > double free or corruption (fasttop): 0x0000000001f3c070 *** > ======= Backtrace: ========= > /lib64/libc.so.6(+0x77de5)[0x7fd9ebe88de5] > /lib64/libc.so.6(+0x8022a)[0x7fd9ebe9122a] > /lib64/libc.so.6(cfree+0x4c)[0x7fd9ebe9478c] > [...] > > Because "struct nfct_helper_policy *p" had been freed by nfct_helper_free, > so there's no need to invoke nfct_helper_policy_free again, otherwise > dobule free error will happen. Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html