diff options
author | Robert Shih <robertshih@google.com> | 2013-11-08 14:37:33 -0800 |
---|---|---|
committer | Robert Shih <robertshih@google.com> | 2013-11-08 14:37:33 -0800 |
commit | 817d4aa19e6a9c95ec20486e6d74dea5a38e7236 (patch) | |
tree | e7d4814f283c3f27a9778e81bb4e222ee762c73d | |
parent | 1dfca7775f0b8352a0fd6cfed1e70075e5fa4e75 (diff) | |
download | frameworks_av-817d4aa19e6a9c95ec20486e6d74dea5a38e7236.zip frameworks_av-817d4aa19e6a9c95ec20486e6d74dea5a38e7236.tar.gz frameworks_av-817d4aa19e6a9c95ec20486e6d74dea5a38e7236.tar.bz2 |
Fixed file descriptor leak in FwdLockEngine::onGetOriginalMimeType.
Bug: 11534051
Change-Id: I0ab56b0a96b30f721bcac1d1ccc6ca85c3271ef5
-rw-r--r-- | drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/FwdLockEngine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/FwdLockEngine.cpp b/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/FwdLockEngine.cpp index 234aef2..f400732 100644 --- a/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/FwdLockEngine.cpp +++ b/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/FwdLockEngine.cpp @@ -316,6 +316,7 @@ String8 FwdLockEngine::onGetOriginalMimeType(int uniqueId, const String8& path, if (-1 < fileDesc) { if (FwdLockFile_attach(fileDesc) < 0) { + close(fileDesc); return mimeString; } const char* pMimeType = FwdLockFile_GetContentType(fileDesc); |