src/output/select.c (select_matches): Fix memory leak
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 1 May 2021 05:45:09 +0000 (07:45 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 1 May 2021 05:45:09 +0000 (07:45 +0200)
src/output/select.c

index 7f76b73a85c2b060be68afae786ffa95318a11db..491caa3d919b7c9e78cd4fb3fd7ea193803b049f 100644 (file)
@@ -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;