projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74f7e16
)
spv-driver: Fix memory leak on error path.
author
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 23 Nov 2022 01:15:22 +0000
(17:15 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 23 Nov 2022 01:15:22 +0000
(17:15 -0800)
src/output/spv-driver.c
patch
|
blob
|
history
diff --git
a/src/output/spv-driver.c
b/src/output/spv-driver.c
index 707e82abfa33afe34348743664bcc176a13a6fce..7e22cf0c1bac7469904b4b545415683c407d3f53 100644
(file)
--- a/
src/output/spv-driver.c
+++ b/
src/output/spv-driver.c
@@
-62,6
+62,7
@@
spv_create (struct file_handle *fh, enum settings_output_devices device_type,
if (spv->writer == NULL)
{
msg (ME, "%s", error);
+ free (error);
goto error;
}