mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 21:18:23 +01:00
Removed a redundant null check.
This commit is contained in:
parent
9eb4583dd5
commit
0fd629857d
@ -86,10 +86,6 @@ void* msgpack_zone_malloc_expand(msgpack_zone* zone, size_t size)
|
||||
sizeof(msgpack_zone_chunk) + sz);
|
||||
if (chunk == NULL) return NULL;
|
||||
char* ptr = ((char*)chunk) + sizeof(msgpack_zone_chunk);
|
||||
if (ptr == NULL) {
|
||||
free(chunk);
|
||||
return NULL;
|
||||
}
|
||||
chunk->next = cl->head;
|
||||
cl->head = chunk;
|
||||
cl->free = sz - size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user