mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Simplify the implementation and the API for stringfields;
details and examples are in include/asterisk/stringfields.h. Not applicable to older branches except for 1.4 which will receive a fix for the routines that free memory pools. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1272,11 +1272,11 @@ static void ast_unregister_groups(void)
|
||||
AST_RWLIST_WRLOCK(&feature_groups);
|
||||
while ((fg = AST_LIST_REMOVE_HEAD(&feature_groups, entry))) {
|
||||
while ((fge = AST_LIST_REMOVE_HEAD(&fg->features, entry))) {
|
||||
ast_string_field_free_all(fge);
|
||||
ast_string_field_free_memory(fge);
|
||||
ast_free(fge);
|
||||
}
|
||||
|
||||
ast_string_field_free_all(fg);
|
||||
ast_string_field_free_memory(fg);
|
||||
ast_free(fg);
|
||||
}
|
||||
AST_RWLIST_UNLOCK(&feature_groups);
|
||||
|
Reference in New Issue
Block a user