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:
Luigi Rizzo
2007-11-04 19:44:31 +00:00
parent eb856fbb48
commit 08b10da53b
8 changed files with 228 additions and 264 deletions

View File

@@ -4872,7 +4872,7 @@ static void destroy_trunk(struct sla_trunk *trunk)
while ((station_ref = AST_LIST_REMOVE_HEAD(&trunk->stations, entry)))
ast_free(station_ref);
ast_string_field_free_all(trunk);
ast_string_field_free_memory(trunk);
ast_free(trunk);
}
@@ -4898,7 +4898,7 @@ static void destroy_station(struct sla_station *station)
while ((trunk_ref = AST_LIST_REMOVE_HEAD(&station->trunks, entry)))
ast_free(trunk_ref);
ast_string_field_free_all(station);
ast_string_field_free_memory(station);
ast_free(station);
}