mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +00:00
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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@192359 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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__);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user