diff options
author | Martin Josefsson <gandalf@wlug.westbo.se> | 2003-05-02 15:30:11 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2003-05-02 15:30:11 +0000 |
commit | 841e4aed2349046eb2c0b1375139c06569a93bd0 (patch) | |
tree | 9f7a208076fc164ca3d52e745964c7dbc7afc350 /include/libiptc | |
parent | 59cbe17cee0499c8f25a8d9f29513f4c85e9b03c (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libiptc/libiptc.h b/include/libiptc/libiptc.h index 82745f93..50765d98 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); |