]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
main/config: Clean config maps on shutdown. 26/2026/1
authorCorey Farrell <git@cfware.com>
Sat, 16 Jan 2016 01:52:26 +0000 (20:52 -0500)
committerCorey Farrell <git@cfware.com>
Sat, 16 Jan 2016 01:52:33 +0000 (20:52 -0500)
ASTERISK-25700 #close

Change-Id: I096da84f9c62c6095f68bcf98eac4b7c7868e808

main/config.c

index 59d5163342d2fa83436a9dbaf61b40b46e1330c2..4766d2efb59735402db47f6a8535928289f38343 100644 (file)
@@ -3378,6 +3378,8 @@ static void config_shutdown(void)
 
        ast_cli_unregister_multiple(cli_config, ARRAY_LEN(cli_config));
 
+       clear_config_maps();
+
        ao2_cleanup(cfg_hooks);
        cfg_hooks = NULL;
 }