projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Plugged memory leaks in GUI, and converted most of the strings to UTF8, so that
[pspp-builds.git]
/
src
/
language
/
data-io
/
print.c
diff --git
a/src/language/data-io/print.c
b/src/language/data-io/print.c
index 63270160d949dd9654776fd13ffa4e8572415cd0..b96ee13be3a4a11105aaef959b9c8a621a850a2e 100644
(file)
--- a/
src/language/data-io/print.c
+++ b/
src/language/data-io/print.c
@@
-141,7
+141,7
@@
static int
internal_cmd_print (int f)
{
int table = 0; /* Print table? */
internal_cmd_print (int f)
{
int table = 0; /* Print table? */
- struct print_trns *trns
;
/* malloc()'d transformation. */
+ struct print_trns *trns
= NULL;
/* malloc()'d transformation. */
struct file_handle *fh = NULL;
/* Fill in prt to facilitate error-handling. */
struct file_handle *fh = NULL;
/* Fill in prt to facilitate error-handling. */
@@
-966,7
+966,7
@@
print_trns_proc (void *trns_, struct ccase *c, int case_num UNUSED)
return TRNS_CONTINUE;
}
return TRNS_CONTINUE;
}
-/* Frees all the data inside print_trns
T. Does not free
T. */
+/* Frees all the data inside print_trns
PRT. Does not free PR
T. */
static bool
print_trns_free (void *prt_)
{
static bool
print_trns_free (void *prt_)
{
@@
-996,7
+996,6
@@
print_trns_free (void *prt_)
if (prt->writer != NULL)
ok = dfm_close_writer (prt->writer);
free (prt->line);
if (prt->writer != NULL)
ok = dfm_close_writer (prt->writer);
free (prt->line);
- free (prt);
return ok;
}
\f
return ok;
}
\f