mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
CLEANUP: hlua: Remove obsolete branch in hlua_alloc()
This branch is no longer required, because the `!nsize` case is handled for any value of `ptr` now. see22586524e3seea5efdff93c
This commit is contained in:
parent
e6c04507d8
commit
8aee3030f8
1 changed files with 0 additions and 3 deletions
|
|
@ -11529,9 +11529,6 @@ static void *hlua_alloc(void *ud, void *ptr, size_t osize, size_t nsize)
|
|||
struct hlua_mem_allocator *zone = ud;
|
||||
size_t limit, old, new;
|
||||
|
||||
if (unlikely(!ptr && !nsize))
|
||||
return NULL;
|
||||
|
||||
/* a limit of ~0 means unlimited and boot complete, so there's no need
|
||||
* for accounting anymore.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue