From 9936874ffa6fc87ddf71267455e6af116510ca61 Mon Sep 17 00:00:00 2001 From: John McNamara Date: Mon, 23 Feb 2015 20:39:47 +0000 Subject: [PATCH] Fix for open tmpfiles in constant_memory mode. Use implicit close for all tmpfiles in constant_memory mode. Issue #1. --- src/worksheet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/worksheet.c b/src/worksheet.c index bb9bf4f3..41166b0c 100644 --- a/src/worksheet.c +++ b/src/worksheet.c @@ -677,6 +677,8 @@ _worksheet_write_optimized_sheet_data(lxw_worksheet *self) fwrite(buffer, 1, read_size, self->file); } + fclose(self->optimize_tmpfile); + _xml_end_tag(self->file, "sheetData"); } }