Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu authored May 10, 2024
1 parent a209ab7 commit 31a4688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skynet-src/malloc_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ skynet_calloc(size_t nmemb, size_t size) {
uint32_t n = nmemb + cookie_n;
void* ptr = je_calloc(n, size);
if(!ptr) malloc_oom(n * size);
return fill_prefix(ptr, size, n * size);
return fill_prefix(ptr, n * size, cookie_n * size);
}

static inline uint32_t
Expand Down

0 comments on commit 31a4688

Please sign in to comment.