diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-05 13:37:23 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-05 13:37:23 +0000 |
commit | 6c84600aa647194f02b0cea157bd3a2d5f6738f9 (patch) | |
tree | 16015d9e796b9756effdbb955e24396893c6c229 /main/astobj2.c | |
parent | f9d5244eed26b45ef81a7373603fb0fa30370bb8 (diff) |
Merged revisions 192357 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r192357 | kpfleming | 2009-05-05 15:18:21 +0200 (Tue, 05 May 2009) | 5 lines
Correct some flaws in the memory accounting code for stringfields and ao2 objects
Under some conditions, the memory allocation for stringfields and ao2 objects would not have supplied valid file/function names for MALLOC_DEBUG tracking, so this commit corrects that.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@192359 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/astobj2.c')
-rw-r--r-- | main/astobj2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/astobj2.c b/main/astobj2.c index 8ecc9c258..9d23bf0f0 100644 --- a/main/astobj2.c +++ b/main/astobj2.c @@ -353,7 +353,7 @@ void *_ao2_alloc_debug(size_t data_size, ao2_destructor_fn destructor_fn, char * void *_ao2_alloc(size_t data_size, ao2_destructor_fn destructor_fn) { - return __ao2_alloc(data_size, destructor_fn, NULL, 0, NULL); + return __ao2_alloc(data_size, destructor_fn, __FILE__, __LINE__, __FUNCTION__); } |