Navigation Menu

Skip to content

Commit

Permalink
windows: fix wrong free function
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 17, 2015
1 parent 63538ea commit 87fa8de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/io.c
Expand Up @@ -1324,7 +1324,7 @@ grn_munmap(grn_ctx *ctx, HANDLE *fmo, void *start, size_t length)
{
int r = 0;
if (!fmo) {
GRN_FREE(start);
GRN_GFREE(start);
return r;
}
if (*fmo) {
Expand All @@ -1345,7 +1345,7 @@ grn_munmap(grn_ctx *ctx, HANDLE *fmo, void *start, size_t length)
}
*fmo = NULL;
} else {
GRN_FREE(start);
GRN_GFREE(start);
}
return r;
}
Expand Down

0 comments on commit 87fa8de

Please sign in to comment.