iptables: missing free() in function cache_add_entry()
PATCH 1/1 iptables: missing free() in function cache_add_entry()
From: Franz Flasch <[email protected]>
Fixed a memory leak in the error path of function cache_add_entry().
Signed-off-by Franz Flasch <[email protected]>
Signed-off-by Christian Engelmayer <[email protected]>
---
libiptc/libiptc.c +1 -0
@@ -1012,6 +1012,7 @@ new_rule:if (t->target.u.target_size !=ALIGN (sizeof (STRUCT_STANDARD_TARGET ))) { errno =EINVAL ; +free (r);return -1 ; }
Quoted 3 lines · Christian Engelmayer
From: Franz Flasch <[email protected]>
Fixed a memory leak in the error path of function
cache_add_entry().
Applied, thanks.