From dc62965760731de52509441dd495cf7a5b1cce3d Mon Sep 17 00:00:00 2001 From: thunder2 Date: Sun, 14 Jun 2015 22:23:26 +0000 Subject: [PATCH] Added missing fclose to RsAccountsDetail::loadPreferredAccount. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8455 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/rsserver/rsaccounts.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libretroshare/src/rsserver/rsaccounts.cc b/libretroshare/src/rsserver/rsaccounts.cc index 586eeb49d..ffc352514 100644 --- a/libretroshare/src/rsserver/rsaccounts.cc +++ b/libretroshare/src/rsserver/rsaccounts.cc @@ -394,7 +394,10 @@ bool RsAccountsDetail::loadPreferredAccount() mPreferredId = RsPeerId(std::string(path)); if(mPreferredId.isNull()) + { + fclose(ifd); return false ; + } } fclose(ifd); return true;