diff options
Diffstat (limited to 'src/mosflm.c')
-rw-r--r-- | src/mosflm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mosflm.c b/src/mosflm.c index 5cd2291e..6f27eb7d 100644 --- a/src/mosflm.c +++ b/src/mosflm.c @@ -228,6 +228,8 @@ static void write_spt(struct image *image, const char *filename) } + free(sptlines); + fprintf(fh,"%10.2f %10.2f %10.2f %10.2f %10.2f %10.2f\n", -999.0,-999.0,-999.0,-999.0,-999.0,-999.0); fclose(fh); @@ -262,8 +264,8 @@ static void write_img(struct image *image, const char *filename) /* Header padding */ while ( ftell(fh) < 512 ) fprintf(fh," "); - fwrite(fh, sizeof(unsigned short int), 1, fh); - + fwrite(intimage, sizeof(unsigned short int), 1, fh); + free(intimage); fclose(fh); } |