Skip to content
Permalink
Browse files
Groonga: GCC 12.2.0 -Og -Wuse-after-free
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.
@@ -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);
}
}
}

0 comments on commit 4a8da62

Please sign in to comment.