mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
Groonga: GCC 12.2.0 -Og -Wuse-after-free
This message would always have been invoked on ptr=NULL.
This commit is contained in:
parent
9fd91863e6
commit
4a8da624b5
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 (%s:%d) <%d>",
|
||||
file, line, alloc_count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue