summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/io/read_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/io/read_file.c b/src/io/read_file.c
index 414a6d8..b7b1095 100644
--- a/src/io/read_file.c
+++ b/src/io/read_file.c
@@ -84,12 +84,13 @@ struct filebuf *file_to_filebuf(char *fname, int openOptions) {
return res;
}
-sponge:
+sponge: {
FILE *stream = fdopen(fd, "rb");
struct filebuf *res = stream_to_filebuf(stream, openOptions);
fclose(stream);
return res;
}
+}
void free_filebuf(struct filebuf *fb) {
switch (fb->mapping_type) {