projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
macro conditional expressions (no tests yet)
[pspp]
/
utilities
/
pspp-dump-sav.c
diff --git
a/utilities/pspp-dump-sav.c
b/utilities/pspp-dump-sav.c
index 70687ebc803bb23a6f610b79f69a76476b0050fa..4a44e490574aa7427a4c0fb3eff95d358926184d 100644
(file)
--- a/
utilities/pspp-dump-sav.c
+++ b/
utilities/pspp-dump-sav.c
@@
-236,6
+236,8
@@
main (int argc, char *argv[])
else if (r.compression == COMP_ZLIB)
read_zlib_compressed_data (&r);
else if (r.compression == COMP_ZLIB)
read_zlib_compressed_data (&r);
+ free (r.var_widths);
+
fclose (r.file);
}
fclose (r.file);
}
@@
-1018,6
+1020,8
@@
read_character_encoding (struct sfm_reader *r, size_t size, size_t count)
read_string (r, encoding, count + 1);
printf ("%08llx: Character Encoding: %s\n", posn, encoding);
read_string (r, encoding, count + 1);
printf ("%08llx: Character Encoding: %s\n", posn, encoding);
+
+ free (encoding);
}
static void
}
static void
@@
-1227,7
+1231,7
@@
read_simple_compressed_data (struct sfm_reader *r, int max_cases)
{
printf ("%08llx: case %d's uncompressible data begins\n",
(long long int) ftello (r->file), case_num);
{
printf ("%08llx: case %d's uncompressible data begins\n",
(long long int) ftello (r->file), case_num);
- for (i = 0; i < r->n_var_widths;
)
+ for (i = 0; i < r->n_var_widths;)
{
int width = r->var_widths[i];
char raw_value[8];
{
int width = r->var_widths[i];
char raw_value[8];