projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b4966f4
)
ods-reader: Fix memory leak.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 17 Mar 2012 19:07:53 +0000
(12:07 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 17 Mar 2012 19:08:43 +0000
(12:08 -0700)
Found by valgrind.
src/data/ods-reader.c
patch
|
blob
|
history
diff --git
a/src/data/ods-reader.c
b/src/data/ods-reader.c
index aedea078dfc34d82242a3783aeaef8e86e03b76a..9c165f9c92e30bd305a233f7b8bf4e4e57e2a50d 100644
(file)
--- a/
src/data/ods-reader.c
+++ b/
src/data/ods-reader.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2011 Free Software Foundation, Inc.
+ Copyright (C) 2011
, 2012
Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-324,11
+324,11
@@
convert_xml_to_value (struct ccase *c, const struct variable *var,
text =
xmv->value ? CHAR_CAST (const char *, xmv->value) : CHAR_CAST (const char *, xmv->text);
text =
xmv->value ? CHAR_CAST (const char *, xmv->value) : CHAR_CAST (const char *, xmv->text);
- data_in (ss_cstr (text), "UTF-8",
- fmt->type,
- v,
- var_get_width (var),
-
"UTF-8"
);
+
free (
data_in (ss_cstr (text), "UTF-8",
+
fmt->type,
+
v,
+
var_get_width (var),
+
"UTF-8")
);
}
}
}
}