Kouhei Sutou
null+****@clear*****
Mon Sep 11 09:14:44 JST 2017
Kouhei Sutou 2017-09-11 09:14:44 +0900 (Mon, 11 Sep 2017) New Revision: 5666a55877ded2ba0ff9d7049c668177e840bf06 https://github.com/groonga/groonga/commit/5666a55877ded2ba0ff9d7049c668177e840bf06 Message: io windows: ensure cleaning file handle on failure Modified files: lib/io.c Modified: lib/io.c (+4 -0) =================================================================== --- lib/io.c 2017-09-08 17:50:55 +0900 (8f57e9d35) +++ lib/io.c 2017-09-11 09:14:44 +0900 (48a9d7659) @@ -1829,6 +1829,10 @@ grn_fileinfo_open(grn_ctx *ctx, fileinfo *fi, const char *path, int flags) rc = grn_fileinfo_open_common(ctx, fi, path, flags); if (rc != GRN_SUCCESS) { + if (fi->fh) { + CloseHandle(fi->fh); + fi->fh = INVALID_HANDLE_VALUE; + } return rc; } -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170911/ca1e1688/attachment.htm