Skip to content

Commit

Permalink
Groonga: GCC 12.2.0 -Og -Wuse-after-free
Browse files Browse the repository at this point in the history
This message would always have been invoked on ptr=NULL.
  • Loading branch information
dr-m committed Oct 7, 2022
1 parent 9fd9186 commit 4a8da62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/mroonga/vendor/groonga/lib/alloc.c
Expand Up @@ -828,8 +828,8 @@ grn_free_default(grn_ctx *ctx, void *ptr,
if (ptr) {
GRN_ADD_ALLOC_COUNT(-1);
} else {
GRN_LOG(ctx, GRN_LOG_ALERT, "free fail (%p) (%s:%d) <%d>",
ptr, file, line, alloc_count);
GRN_LOG(ctx, GRN_LOG_ALERT, "free fail (%s:%d) <%d>",
file, line, alloc_count);
}
}
}
Expand Down

0 comments on commit 4a8da62

Please sign in to comment.