projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples: Rename variables for nhtsa example to give them better names.
[pspp]
/
src
/
output
/
spv-driver.c
diff --git
a/src/output/spv-driver.c
b/src/output/spv-driver.c
index 1eb57f7f16001a6befb951e8817c9010a6b21d94..7e22cf0c1bac7469904b4b545415683c407d3f53 100644
(file)
--- a/
src/output/spv-driver.c
+++ b/
src/output/spv-driver.c
@@
-52,9
+52,7
@@
spv_create (struct file_handle *fh, enum settings_output_devices device_type,
struct string_map *o UNUSED)
{
struct output_driver *d;
struct string_map *o UNUSED)
{
struct output_driver *d;
- struct spv_driver *spv;
-
- spv = xzalloc (sizeof *spv);
+ struct spv_driver *spv = XZALLOC (struct spv_driver);
d = &spv->driver;
spv->handle = fh;
output_driver_init (&spv->driver, &spv_driver_class, fh_get_file_name (fh),
d = &spv->driver;
spv->handle = fh;
output_driver_init (&spv->driver, &spv_driver_class, fh_get_file_name (fh),
@@
-64,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;
}