projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
891df28
)
line-reader-test: Fix memory leak.
author
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 23 Jan 2019 04:41:07 +0000
(20:41 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 23 Jan 2019 04:41:07 +0000
(20:41 -0800)
tests/libpspp/line-reader-test.c
patch
|
blob
|
history
diff --git
a/tests/libpspp/line-reader-test.c
b/tests/libpspp/line-reader-test.c
index c43cfb989a0cb8fb50fb792fc63ac57193440c74..d7881b5043de113d03dd6c31f26220793e3a4fa5 100644
(file)
--- a/
tests/libpspp/line-reader-test.c
+++ b/
tests/libpspp/line-reader-test.c
@@
-98,6
+98,7
@@
cmd_read (int argc, char *argv[])
ds_clear (&line);
}
free (encoding);
+ ds_destroy (&line);
if (!strcmp(filename, "-"))
line_reader_free (r);