]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix filehandle leak
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 20 Dec 2008 05:23:56 +0000 (05:23 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 20 Dec 2008 05:23:56 +0000 (05:23 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@617 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/zap_io.c

index 3535049064b96059b78e19a65a61825247618dad..dcc0f0a3aae04bb0a8977a8ba434540ab27b71f3 100644 (file)
@@ -415,6 +415,8 @@ zap_status_t zap_span_load_tones(zap_span_t *span, const char *mapname)
                        }
                }
        }
+
+       zap_config_close_file(&cfg);
        
        if (!x) {
                snprintf(span->last_error, sizeof(span->last_error), "error loading tones.");