Changeset: 5ba41708a2bb for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5ba41708a2bb
Modified Files:
        common/stream/stream.c
Branch: octbugs
Log Message:

Close stream with close_stream, not destroy_stream

In open_wstream, if wrapping the opened stream in a compressed_stream
does not work, properly close the stream so the file can be removed,
even on Windows.


diffs (12 lines):

diff --git a/common/stream/stream.c b/common/stream/stream.c
--- a/common/stream/stream.c
+++ b/common/stream/stream.c
@@ -871,7 +871,7 @@ open_wstream(const char *filename)
 
        stream *c = compressed_stream(s, 0);
        if (c == NULL) {
-               mnstr_destroy(s);
+               close_stream(s);
                file_remove(filename);
        }
 
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to