projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b138d9
)
driver: Fix memory leak in output_submit().
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 11 Oct 2019 05:03:54 +0000
(
05:03
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 30 Oct 2019 22:41:21 +0000
(22:41 +0000)
src/output/driver.c
patch
|
blob
|
history
diff --git
a/src/output/driver.c
b/src/output/driver.c
index e953d11a63ff0374a75b843ec3c8b78f3f4ecbea..e6fc0ca9506de146ab8f48d7b5c41a97d01240a5 100644
(file)
--- a/
src/output/driver.c
+++ b/
src/output/driver.c
@@
-250,7
+250,7
@@
output_submit (struct output_item *item)
if (idx >= 1 && idx <= 4)
{
char *key = xasprintf ("Head%zu", idx);
-
string_map_find_and_delete (&e->heading_vars, key
);
+
free (string_map_find_and_delete (&e->heading_vars, key)
);
free (key);
}
}