Module: sip-router
Branch: master
Commit: e7a0840a1334280650d4abb865843da0072adec6
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e7a0840…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jan 30 12:12:44 2014 +0100
utils/db_berkeley: release file description in error cases
---
utils/db_berkeley/kambdb_recover.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/utils/db_berkeley/kambdb_recover.c b/utils/db_berkeley/kambdb_recover.c
index 76e6fc9..357e61f 100644
--- a/utils/db_berkeley/kambdb_recover.c
+++ b/utils/db_berkeley/kambdb_recover.c
@@ -332,6 +332,7 @@ int recover(char* jfn)
{
fprintf(stderr, "[recover]: Table %s is not supported.\n",tn);
fprintf(stderr, "[recover]: FAILED to load journal file: %s.\n", jfn);
+ fclose(fp);
return 2;
}
@@ -340,6 +341,7 @@ int recover(char* jfn)
if(!tbc || !tp)
{
fprintf(stderr, "[recover]: FAILED to get find metadata for : %s.\n", tn);
+ fclose(fp);
return 3;
}