Browse Source

Fix mroonga warning of use-after-free

pull/2449/head
Vicențiu Ciorbaru 3 years ago
parent
commit
244bf37c73
  1. 4
      storage/mroonga/vendor/groonga/lib/alloc.c

4
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);
}
}
}

Loading…
Cancel
Save