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/trunk@192357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2009-05-05 13:18:21 +00:00
parent ec5116f80c
commit 1f49e675bb
3 changed files with 3 additions and 3 deletions

View File

@@ -358,7 +358,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 internal_ao2_alloc(data_size, destructor_fn, NULL, 0, NULL);
return internal_ao2_alloc(data_size, destructor_fn, __FILE__, __LINE__, __FUNCTION__);
}