diff options
author | Ana Rey <anarey@gmail.com> | 2014-04-13 20:08:34 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-04-14 10:49:09 +0200 |
commit | c0222e9ed6877eec4842cc9761f2683cdfdf5ff3 (patch) | |
tree | e4d51e087c168bedd1865d7748680cfffbf40aa8 /src/expr | |
parent | f349fc44e0961b72f39d5343a26fcbbd5b4e1dec (diff) |
tests: Fix a memory leak
Free nft_parse_err struct when there is an error in execute_test function.
It solves the following memory leak shown by valgrind.
==7845== 24 bytes in 1 blocks are still reachable in loss record 1 of 2
==7845== at 0x4C29590: calloc (vg_replace_malloc.c:618)
==7845== by 0x401740: execute_test_file (nft-parsing-test.c:249)
==7845== by 0x400EBB: main (nft-parsing-test.c:330)
Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/expr')
0 files changed, 0 insertions, 0 deletions