Memory leak fixes Bug #4216
authorMatthew Fredrickson <creslin@digium.com>
Thu, 12 May 2005 17:40:44 +0000 (17:40 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Thu, 12 May 2005 17:40:44 +0000 (17:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5638 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/codec_adpcm.c
codecs/codec_alaw.c
codecs/codec_g726.c
codecs/codec_gsm.c
codecs/codec_lpc10.c
codecs/codec_speex.c
codecs/codec_ulaw.c

index 8511e7c..55a0cca 100755 (executable)
@@ -574,6 +574,7 @@ parse_config(void)
        var = var->next;
       }
     }
+    ast_config_destroy(cfg);
   }
 }
 
index 0c99c56..bd1bdea 100755 (executable)
@@ -364,6 +364,7 @@ parse_config(void)
        var = var->next;
       }
     }
+    ast_config_destroy(cfg);
   }
 }
 
index 7ba76a9..6ad1bae 100755 (executable)
@@ -1010,6 +1010,7 @@ parse_config(void)
        var = var->next;
       }
     }
+    ast_config_destroy(cfg);
   }
 }
 
index d562c6b..80cb8e9 100755 (executable)
@@ -282,6 +282,7 @@ static void parse_config(void)
                               var = var->next;
                        }
                }
+               ast_config_destroy(cfg);
        }
 }
 
index 1e76548..9b4cb68 100755 (executable)
@@ -362,6 +362,7 @@ static void parse_config(void)
                                var = var->next;
                         }
                 }
+               ast_config_destroy(cfg);
         }
 }
 
index d783771..e7dd94c 100755 (executable)
@@ -400,6 +400,7 @@ static void parse_config(void)
                                var = var->next;
                        }
                }
+               ast_config_destroy(cfg);
        }
 }
 
index 2208482..0dffe95 100755 (executable)
@@ -363,6 +363,7 @@ parse_config(void)
        var = var->next;
       }
     }
+    ast_config_destroy(cfg);
   }
 }