From 654cd7fa70fdd970bba13a3cf8749f89f0d022cc Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 20 Dec 2008 05:23:56 +0000 Subject: [PATCH] fix filehandle leak git-svn-id: http://svn.openzap.org/svn/openzap/trunk@617 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/zap_io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/openzap/src/zap_io.c b/libs/openzap/src/zap_io.c index 3535049064..dcc0f0a3aa 100644 --- a/libs/openzap/src/zap_io.c +++ b/libs/openzap/src/zap_io.c @@ -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.");