summaryrefslogtreecommitdiff
path: root/include/asterisk/stringfields.h
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2009-05-05 13:18:21 +0000
committerKevin P. Fleming <kpfleming@digium.com>2009-05-05 13:18:21 +0000
commit1f49e675bbe1eaada53b678f07ee4ad75e25bbef (patch)
tree7294d2d450a81737b0268f145e1e2c63f754c471 /include/asterisk/stringfields.h
parentec5116f80c7ed6922bdc483f11b220ebbee8618b (diff)
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
Diffstat (limited to 'include/asterisk/stringfields.h')
-rw-r--r--include/asterisk/stringfields.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/stringfields.h b/include/asterisk/stringfields.h
index 3d59ea12c..ca87b60ce 100644
--- a/include/asterisk/stringfields.h
+++ b/include/asterisk/stringfields.h
@@ -244,7 +244,7 @@ void __ast_string_field_ptr_build_va(struct ast_string_field_mgr *mgr,
/*! \brief free all memory - to be called before destroying the object */
#define ast_string_field_free_memory(x) \
- __ast_string_field_init(&(x)->__field_mgr, &(x)->__field_mgr_pool, -1, NULL, 0, NULL)
+ __ast_string_field_init(&(x)->__field_mgr, &(x)->__field_mgr_pool, -1, __FILE__, __LINE__, __PRETTY_FUNCTION__)
/*!
* \internal