summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2013-05-24 15:27:01 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-31 11:01:13 +0300
commitbac356ff03abd450b471ae19036d5069171007c2 (patch)
tree875e01f1b13c95cc431f0795b3c8bbf37329dddb /src/connection.c
parenteda292ce0c92f6e866474ea72b3fea7a1b37029b (diff)
downloadconnman-bac356ff03abd450b471ae19036d5069171007c2.tar.gz
connman-bac356ff03abd450b471ae19036d5069171007c2.tar.bz2
connman-bac356ff03abd450b471ae19036d5069171007c2.zip
iptables: Fix memory leak when invoking xtables_find_match
xtables_find_match() returns two different kind of pointers. The first type is pointing to the function pointer table loaded via dlopen(). The second type is a copy (via plain malloc) of the first type. xtables_find_match() marks the copies/clones with m == m->next. So we need to free the struct xtables_match which point back to themself. Also fix the issue that we didn't handle multple match instances at the same time. The memory leak is only visible when having more than one match of a kind.
Diffstat (limited to 'src/connection.c')
0 files changed, 0 insertions, 0 deletions