From 3785261a19bc2be523f288ba032f78f0b02bccdd Mon Sep 17 00:00:00 2001 From: laforge Date: Fri, 2 May 2003 15:30:11 +0000 Subject: fix memory leak(s) in libiptc. Reverts the previous (wrong) patch. (Martin Josefsson) --- include/libiptc/libiptc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/libiptc') diff --git a/include/libiptc/libiptc.h b/include/libiptc/libiptc.h index 82745f9..50765d9 100644 --- a/include/libiptc/libiptc.h +++ b/include/libiptc/libiptc.h @@ -34,6 +34,9 @@ int iptc_is_chain(const char *chain, const iptc_handle_t handle); /* Take a snapshot of the rules. Returns NULL on error. */ iptc_handle_t iptc_init(const char *tablename); +/* Cleanup after iptc_init(). */ +void iptc_free(iptc_handle_t *h); + /* Iterator functions to run through the chains. Returns NULL at end. */ const char *iptc_first_chain(iptc_handle_t *handle); const char *iptc_next_chain(iptc_handle_t *handle); -- cgit v1.2.3