projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spv-driver: Fix memory leak on error path.
[pspp]
/
src
/
output
/
spv-driver.c
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);
if (spv->writer == NULL)
{
msg (ME, "%s", error);
+ free (error);
goto error;
}
goto error;
}