core: add x* memory allocation functions
This patch adds xmalloc, xcalloc, xrealloc, xstrdup, and xstrndup helper functions. Each of them calls the corresponding memory allocation function and panics if it fails. See the issue description for the full justification. Closes #3534 (cherry picked from commit 60dc88ea)
src/lib/core/xmalloc.h
0 → 100644
test/unit/xmalloc.c
0 → 100644
test/unit/xmalloc.result
0 → 100644
Please register or sign in to comment