We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76860c7 commit 1984cb3Copy full SHA for 1984cb3
h_malloc.c
@@ -1690,7 +1690,7 @@ EXPORT size_t h_malloc_object_size(void *p) {
1690
struct region_allocator *ra = ro.region_allocator;
1691
mutex_lock(&ra->lock);
1692
struct region_metadata *region = regions_find(p);
1693
- size_t size = p == NULL ? SIZE_MAX : region->size;
+ size_t size = region == NULL ? SIZE_MAX : region->size;
1694
mutex_unlock(&ra->lock);
1695
1696
thread_seal_metadata();
0 commit comments