projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5909ba4
)
spv-driver: Fix double free on error path.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 25 Oct 2020 05:15:51 +0000
(22:15 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 25 Oct 2020 05:15:51 +0000
(22:15 -0700)
The output_driver_destroy() call also indirectly called fh_unref().
src/output/spv-driver.c
patch
|
blob
|
history
diff --git
a/src/output/spv-driver.c
b/src/output/spv-driver.c
index 935b2fb9f7071d0362532e5e429e9c0450c87d20..3990ab2041e991ba8c2a03cc7e7d7c8a03140a0a 100644
(file)
--- a/
src/output/spv-driver.c
+++ b/
src/output/spv-driver.c
@@
-72,7
+72,6
@@
spv_create (struct file_handle *fh, enum settings_output_devices device_type,
return d;
error:
- fh_unref (fh);
output_driver_destroy (d);
return NULL;
}