mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
Fix mroonga warning of use-after-free
This commit is contained in:
parent
567b681299
commit
244bf37c73
1 changed files with 2 additions and 2 deletions
4
storage/mroonga/vendor/groonga/lib/alloc.c
vendored
4
storage/mroonga/vendor/groonga/lib/alloc.c
vendored
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue