diff options
author | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2023-01-19 06:49:47 +0200 |
---|---|---|
committer | Vicențiu Ciorbaru <cvicentiu@gmail.com> | 2023-01-20 15:18:52 +0200 |
commit | 244bf37c733fe632d645eeab8859758b05b1dff6 (patch) | |
tree | 9b01b43674b59fb128a31982fb4683bbdd59a2ba | |
parent | 567b68129943a1cceab1d7b4c68e2a4ba011cdc0 (diff) | |
download | mariadb-git-244bf37c733fe632d645eeab8859758b05b1dff6.tar.gz |
Fix mroonga warning of use-after-free
-rw-r--r-- | storage/mroonga/vendor/groonga/lib/alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/mroonga/vendor/groonga/lib/alloc.c b/storage/mroonga/vendor/groonga/lib/alloc.c index 2e28431595a..23fe459797e 100644 --- a/storage/mroonga/vendor/groonga/lib/alloc.c +++ b/storage/mroonga/vendor/groonga/lib/alloc.c @@ -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); } } } |