Commit 244bf37c authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Fix mroonga warning of use-after-free

parent 567b6812
...@@ -828,8 +828,8 @@ grn_free_default(grn_ctx *ctx, void *ptr, ...@@ -828,8 +828,8 @@ grn_free_default(grn_ctx *ctx, void *ptr,
if (ptr) { if (ptr) {
GRN_ADD_ALLOC_COUNT(-1); GRN_ADD_ALLOC_COUNT(-1);
} else { } else {
GRN_LOG(ctx, GRN_LOG_ALERT, "free fail (%p) (%s:%d) <%d>", GRN_LOG(ctx, GRN_LOG_ALERT, "free fail (nullptr) (%s:%d) <%d>",
ptr, file, line, alloc_count); file, line, alloc_count);
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment