Changeset: 74764fdef0c4 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=74764fdef0c4 Modified Files: common/stream/stream.c Branch: Oct2020 Log Message:
Close and destroy stream. diffs (39 lines): diff --git a/common/stream/stream.c b/common/stream/stream.c --- a/common/stream/stream.c +++ b/common/stream/stream.c @@ -851,7 +851,7 @@ open_rstream(const char *filename) stream *c = compressed_stream(s, 0); if (c == NULL) - mnstr_destroy(s); + close_stream(s); return 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); } @@ -892,7 +892,7 @@ open_rastream(const char *filename) stream *t = create_text_stream(s); if (t == NULL) - mnstr_destroy(s); + close_stream(s); return t; } @@ -911,7 +911,7 @@ open_wastream(const char *filename) stream *t = create_text_stream(s); if (t == 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