projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6c0450
)
CLEANUP: hlua: Remove obsolete branch in `hlua_alloc()`
author
Tim Duesterhus
<tim@bastelstu.be>
Sat, 23 Oct 2021 17:56:40 +0000
(19:56 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 28 Oct 2021 07:45:48 +0000
(09:45 +0200)
This branch is no longer required, because the `!nsize` case is handled for any
value of `ptr` now.
see
22586524e32f14c44239063088a38ccea8abc9b7
see
a5efdff93c36f75345a2a18f18bffee9b602bc7b
src/hlua.c
patch
|
blob
|
history
diff --git
a/src/hlua.c
b/src/hlua.c
index
f433a4f
..
0bb9024
100644
(file)
--- a/
src/hlua.c
+++ b/
src/hlua.c
@@
-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.
*/