From 884d57d3766b6ce16534ed1267b5ecab572dae0b Mon Sep 17 00:00:00 2001 From: Luca Niccoli Date: Fri, 28 Feb 2014 09:11:38 -0500 Subject: [PATCH] Bug 977803 - Release the fcntl lock during nsProfileLock::Unlock if it was acquired. r=bsmedberg --- profile/dirserviceprovider/src/nsProfileLock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile/dirserviceprovider/src/nsProfileLock.cpp b/profile/dirserviceprovider/src/nsProfileLock.cpp index b9a26fcaeae..fbb7425113e 100644 --- a/profile/dirserviceprovider/src/nsProfileLock.cpp +++ b/profile/dirserviceprovider/src/nsProfileLock.cpp @@ -634,7 +634,7 @@ nsresult nsProfileLock::Unlock(bool aFatalSignal) free(mPidLockFileName); mPidLockFileName = nullptr; } - else if (mLockFileDesc != -1) + if (mLockFileDesc != -1) { close(mLockFileDesc); mLockFileDesc = -1;