aboutsummaryrefslogtreecommitdiff
path: root/src/DumpVar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/DumpVar.c')
-rw-r--r--src/DumpVar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c
index 96613da..8ebee86 100644
--- a/src/DumpVar.c
+++ b/src/DumpVar.c
@@ -104,6 +104,11 @@ int IOJpeg_DumpVar (cGH *GH, int index, int timelevel, IOJpegGeo_t *geo, FILE *f
if (data)
free (data);
+ if (hsize)
+ {
+ free (hsize);
+ }
+
return (0);
}
@@ -150,6 +155,7 @@ int IOJpeg_Output(cGH *GH, int index, int timelevel, CCTK_REAL *data,
colormap_quality,
fid);
+ free(dataout);
return(1);
}