mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 01:36:48 +00:00
Fix some memory leaks found while looking at how realtime
configs are handled. Also cleaned up some coding guidelines violations in app_realtime.c, mostly related to spacing git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@165255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -389,6 +389,9 @@ static struct ast_config *realtime_directory(char *context)
|
||||
if (!cat) {
|
||||
ast_log(LOG_WARNING, "Out of memory\n");
|
||||
ast_config_destroy(cfg);
|
||||
if (rtdata) {
|
||||
ast_config_destroy(rtdata);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
ast_category_append(cfg, cat);
|
||||
|
Reference in New Issue
Block a user