summaryrefslogtreecommitdiffstats
path: root/include/libiptc
diff options
context:
space:
mode:
authorlaforge <laforge>2003-05-02 15:30:11 +0000
committerlaforge <laforge>2003-05-02 15:30:11 +0000
commit3785261a19bc2be523f288ba032f78f0b02bccdd (patch)
tree9f7a208076fc164ca3d52e745964c7dbc7afc350 /include/libiptc
parente4ba10e9607f7b7b6a42ac71d98e770af51c89bd (diff)
fix memory leak(s) in libiptc. Reverts the previous (wrong) patch. (Martin Josefsson)
Diffstat (limited to 'include/libiptc')
-rw-r--r--include/libiptc/libiptc.h3
1 files changed, 3 insertions, 0 deletions
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);