fix filehandle leak

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@617 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2008-12-20 05:23:56 +00:00
parent a4c03480a5
commit 654cd7fa70
1 changed files with 2 additions and 0 deletions

View 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.");