From: John Darrington Date: Sat, 1 May 2021 05:45:09 +0000 (+0200) Subject: src/output/select.c (select_matches): Fix memory leak X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=cbb7b5901e2e6bc7b646ef0bfcab121a8ad567da src/output/select.c (select_matches): Fix memory leak --- diff --git a/src/output/select.c b/src/output/select.c index 7f76b73a85..491caa3d91 100644 --- a/src/output/select.c +++ b/src/output/select.c @@ -213,6 +213,7 @@ select_matches (const struct output_item **items, char *subtype = output_item_get_subtype (item); bool match_subtype = match (subtype, &c->include.subtypes, &c->exclude.subtypes); + free (subtype); if (!match_subtype) continue;