Navigation Menu

Skip to content

Commit

Permalink
io: remove created file on failure while creating new io
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 16, 2015
1 parent f64ee65 commit 2431a9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/io.c
Expand Up @@ -324,6 +324,7 @@ grn_io_create(grn_ctx *ctx, const char *path, uint32_t header_size, uint32_t seg
GRN_MUNMAP(&grn_gctx, NULL, &fis->fmo, fis, header, b);
}
grn_close(ctx, fis);
grn_unlink(path);
}
GRN_GFREE(fis);
}
Expand Down

0 comments on commit 2431a9d

Please sign in to comment.