projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a60f482
)
src/output/select.c (select_matches): Fix memory leak
author
John Darrington
<john@darrington.wattle.id.au>
Sat, 1 May 2021 05:45:09 +0000
(07:45 +0200)
committer
John Darrington
<john@darrington.wattle.id.au>
Sat, 1 May 2021 05:45:09 +0000
(07:45 +0200)
src/output/select.c
patch
|
blob
|
history
diff --git
a/src/output/select.c
b/src/output/select.c
index 7f76b73a85c2b060be68afae786ffa95318a11db..491caa3d919b7c9e78cd4fb3fd7ea193803b049f 100644
(file)
--- 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;