Skip to contentSkip to conversation

rule: obj_free() releases timeout state string

PATCH New Pablo Neira Ayuso 1 participant 1 message Jun 23, 2021 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 rule: obj_free() releases timeout state string

Missing free() on the timeout state string on object release.

Fixes 7a0e26723496 ("rule: memleak of list of timeout policies"
---
 src/rule.c | 1 +
 1 file changed, 1 insertion(+)
src/rule.c +1 -0
index 10569aa7875a..877eae3cd85d 100644
@@ -1714,6 +1714,7 @@ void obj_free(struct obj *obj)
 
 		list_for_each_entry_safe(ts, next, &obj->ct_timeout.timeout_list, head) {
 			list_del(&ts->head);
+			xfree(ts->timeout_str);
 			xfree(ts);
 		}
 	}
Signature · 1 line
2.20.1