projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b562f8
)
sys-file-reader: Fix memory leak.
author
Ben Pfaff
<blp@gnu.org>
Mon, 25 May 2009 02:36:01 +0000
(19:36 -0700)
committer
Ben Pfaff
<blp@gnu.org>
Sun, 7 Jun 2009 04:11:12 +0000
(21:11 -0700)
src/data/sys-file-reader.c
patch
|
blob
|
history
diff --git
a/src/data/sys-file-reader.c
b/src/data/sys-file-reader.c
index cff462ac143df5184aeeec231d1ad388ef278cde..5a8402791464b663f596596b0675098d02202370 100644
(file)
--- a/
src/data/sys-file-reader.c
+++ b/
src/data/sys-file-reader.c
@@
-784,7
+784,7
@@
read_extension_record (struct sfm_reader *r, struct dictionary *dict,
/* New in SPSS 16. Contains a single string that describes
the character encoding, e.g. "windows-1252". */
{
- char *encoding =
xcalloc (
size, count + 1);
+ char *encoding =
pool_calloc (r->pool,
size, count + 1);
read_string (r, encoding, count + 1);
dict_set_encoding (dict, encoding);
return;