[sr-dev] git:master:de12775e: mem: proper field name for shm malloc unsafe define when memory debugging is off

Daniel-Constantin Mierla miconda at gmail.com
Wed Sep 16 00:53:17 CEST 2015


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-09-16T00:51:29+02:00

mem: proper field name for shm malloc unsafe define when memory debugging is off

- reported by Juha Heinanen

---

Modified: mem/shm.h

---

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

---

diff --git a/mem/shm.h b/mem/shm.h
index 2da1bf2..47d11df 100644
--- a/mem/shm.h
+++ b/mem/shm.h
@@ -62,7 +62,7 @@ extern sr_shm_api_t _shm_root;
 									_SRC_FUNCTION_, _SRC_LINE_)
 #else
 #	define shm_malloc(s)         _shm_root.xmalloc(_shm_root.mem_block, (s))
-#	define shm_malloc_unsafe(s)  _shm_root.xmalloc_safe(_shm_root.mem_block, (s))
+#	define shm_malloc_unsafe(s)  _shm_root.xmalloc_unsafe(_shm_root.mem_block, (s))
 #	define shm_realloc(p, s)     _shm_root.xrealloc(_shm_root.mem_block, (p), (s))
 #	define shm_resize(p, s)      _shm_root.xresize(_shm_root.mem_block, (p), (s))
 #	define shm_free(p)           _shm_root.xfree(_shm_root.mem_block, (p))




More information about the sr-dev mailing list