projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56955f4
)
src/output/output-item.c (output_item_unref): Fix memory leak
author
John Darrington
<john@darrington.wattle.id.au>
Sat, 1 May 2021 05:31:34 +0000
(07:31 +0200)
committer
John Darrington
<john@darrington.wattle.id.au>
Sat, 1 May 2021 05:31:34 +0000
(07:31 +0200)
src/output/output-item.c
patch
|
blob
|
history
diff --git
a/src/output/output-item.c
b/src/output/output-item.c
index 043cb42db285bb7fd0e99027b43df2131587948d..97f51f7604ff4bac4b57912527c95e20fd3f2ee0 100644
(file)
--- a/
src/output/output-item.c
+++ b/
src/output/output-item.c
@@
-86,6
+86,7
@@
output_item_unref (struct output_item *item)
case OUTPUT_ITEM_GROUP:
for (size_t i = 0; i < item->group.n_children; i++)
output_item_unref (item->group.children[i]);
+ free (item->group.children);
break;
case OUTPUT_ITEM_IMAGE: