Rename ast_string_field_free_pool to ast_string_field_free_memory,

and ast_string_field_free_all to ast_string_field_reset_all
to avoid misuse (due to too similar names and an error in
documentation). Fix two related memory leaks in app_meetme.

No need to merge to trunk, different fix already applied there.
Not applicable to 1.2



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@88471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2007-11-04 22:38:13 +00:00
parent 986e8a3ae8
commit a0edff2477
5 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -74,7 +74,7 @@
and their storage pool must be freed:
\code
ast_string_field_free_all(sample);
ast_string_field_free_memory(sample);
free(sample);
\endcode
*/
@@ -361,7 +361,7 @@ void __ast_string_field_index_build_va(struct ast_string_field_mgr *mgr,
structure; it should only be called immediately before freeing
the structure itself.
*/
#define ast_string_field_free_pools(x) do { \
#define ast_string_field_free_memory(x) do { \
struct ast_string_field_pool *this, *prev; \
for (this = (x)->__field_mgr.pool; this; this = prev) { \
prev = this->prev; \
@@ -378,7 +378,7 @@ void __ast_string_field_index_build_va(struct ast_string_field_mgr *mgr,
attached to the structure will be available for use by
stringfields again.
*/
#define ast_string_field_free_all(x) do { \
#define ast_string_field_reset_all(x) do { \
int index; \
for (index = 0; index < ast_string_field_count(x); index++) \
ast_string_field_index_free(x, index); \