[sr-dev] git:master:eb277e85: core: mem - extend pkg/shm init function for latest api fields

Daniel-Constantin Mierla miconda at gmail.com
Fri Aug 11 11:18:27 CEST 2017


Module: kamailio
Branch: master
Commit: eb277e854d94eaca3a29d0856e9c903d04df0fd5
URL: https://github.com/kamailio/kamailio/commit/eb277e854d94eaca3a29d0856e9c903d04df0fd5

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-08-11T11:06:24+02:00

core: mem - extend pkg/shm init function for latest api fields

---

Modified: src/core/mem/pkg.c
Modified: src/core/mem/shm.c

---

Diff:  https://github.com/kamailio/kamailio/commit/eb277e854d94eaca3a29d0856e9c903d04df0fd5.diff
Patch: https://github.com/kamailio/kamailio/commit/eb277e854d94eaca3a29d0856e9c903d04df0fd5.patch

---

diff --git a/src/core/mem/pkg.c b/src/core/mem/pkg.c
index 53166ac932..f1e616eca6 100644
--- a/src/core/mem/pkg.c
+++ b/src/core/mem/pkg.c
@@ -39,8 +39,10 @@ int pkg_init_api(sr_pkg_api_t *ap)
 	_pkg_root.mem_pool   = ap->mem_pool;
 	_pkg_root.mem_block  = ap->mem_block;
 	_pkg_root.xmalloc    = ap->xmalloc;
+	_pkg_root.xmallocxz  = ap->xmallocxz;
 	_pkg_root.xfree      = ap->xfree;
 	_pkg_root.xrealloc   = ap->xrealloc;
+	_pkg_root.xreallocxf = ap->xreallocxf;
 	_pkg_root.xstatus    = ap->xstatus;
 	_pkg_root.xinfo      = ap->xinfo;
 	_pkg_root.xavailable = ap->xavailable;
diff --git a/src/core/mem/shm.c b/src/core/mem/shm.c
index e4f4ad6f17..8a2e93b92f 100644
--- a/src/core/mem/shm.c
+++ b/src/core/mem/shm.c
@@ -211,10 +211,12 @@ int shm_init_api(sr_shm_api_t *ap)
 	_shm_root.mem_pool       = ap->mem_pool;
 	_shm_root.mem_block      = ap->mem_block;
 	_shm_root.xmalloc        = ap->xmalloc;
+	_shm_root.xmallocxz      = ap->xmallocxz;
 	_shm_root.xmalloc_unsafe = ap->xmalloc_unsafe;
 	_shm_root.xfree          = ap->xfree;
 	_shm_root.xfree_unsafe   = ap->xfree_unsafe;
 	_shm_root.xrealloc       = ap->xrealloc;
+	_shm_root.xreallocxf     = ap->xreallocxf;
 	_shm_root.xresize        = ap->xresize;
 	_shm_root.xstatus        = ap->xstatus;
 	_shm_root.xinfo          = ap->xinfo;




More information about the sr-dev mailing list