Skip to content
Permalink
Browse files
Fix mroonga warning of use-after-free
  • Loading branch information
cvicentiu committed Jan 20, 2023
1 parent 567b681 commit 244bf37
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 (nullptr) (%s:%d) <%d>",
file, line, alloc_count);
}
}
}

0 comments on commit 244bf37

Please sign in to comment.