summaryrefslogtreecommitdiff
path: root/pith/filter.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-05-13 01:38:56 -0600
committerEduardo Chappa <chappa@washington.edu>2018-05-13 01:38:56 -0600
commitaac7b10863bcfabe936feb5151e7e11123e13306 (patch)
tree8033a31daed6c94fcbdd41eef1682ba0539cfabd /pith/filter.c
parent400647dcc1b040f82d22d539fc013f5e23132049 (diff)
downloadalpine-aac7b10863bcfabe936feb5151e7e11123e13306.tar.xz
* More changes to make Valgrind happy. Work in progress.
Diffstat (limited to 'pith/filter.c')
-rw-r--r--pith/filter.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/pith/filter.c b/pith/filter.c
index 503c6cf4..ea98a4ea 100644
--- a/pith/filter.c
+++ b/pith/filter.c
@@ -5346,6 +5346,10 @@ html_a_output_info(HANDLER_S *hd)
if(risky && ((HTML_OPT_S *) hd->html_data->opt)->warnrisk_f)
(*((HTML_OPT_S *) hd->html_data->opt)->warnrisk_f)();
+ if(hd->dp)
+ so_give((STORE_S **) &hd->dp);
+
+
fs_give((void **) &url);
}
@@ -11406,3 +11410,14 @@ gf_local_nvtnl(FILTER_S *f, int flg)
}
}
+
+void
+free_filter_module_globals(void)
+{
+ FILTER_S *flt, *fltn = gf_master;
+
+ while((flt = fltn) != NULL){ /* free list of old filters */
+ fltn = flt->next;
+ fs_give((void **)&flt);
+ }
+}