diff --git a/libclamav/scanners.c b/libclamav/scanners.c index f035261970..14d5a21a5e 100644 --- a/libclamav/scanners.c +++ b/libclamav/scanners.c @@ -2595,6 +2595,7 @@ static cl_error_t cli_scanhtml(cli_ctx *ctx) form_data_t form_data = {0}; (void)html_normalise_map_form_data(ctx, map, tempname, &hrefs, ctx->dconf, &form_data); save_urls(ctx, &hrefs, &form_data); + html_tag_arg_free(&hrefs); html_form_data_tag_free(&form_data); } else { (void)html_normalise_map(ctx, map, tempname, NULL, ctx->dconf);