summaryrefslogtreecommitdiffstats
path: root/jni/com_android_nfc_NativeLlcpSocket.cpp
diff options
context:
space:
mode:
authorSylvain Fonteneau <sylvain.fonteneau@trusted-logic.com>2010-11-30 16:44:04 +0100
committerSylvain Fonteneau <sylvain.fonteneau@trusted-logic.com>2010-12-01 09:14:17 +0100
commit9e9aca86a21302c0ea26557b374b74a68f9af40d (patch)
tree2afb94eb208d5488f40ba008eae39f350eed0bf1 /jni/com_android_nfc_NativeLlcpSocket.cpp
parent89c67765e6df5925a7799176a18b17171cbf9e03 (diff)
downloadpackages_apps_nfc-9e9aca86a21302c0ea26557b374b74a68f9af40d.zip
packages_apps_nfc-9e9aca86a21302c0ea26557b374b74a68f9af40d.tar.gz
packages_apps_nfc-9e9aca86a21302c0ea26557b374b74a68f9af40d.tar.bz2
Fixed error case where dynamic semaphore was not released.
Change-Id: I2db58875daaa85289dcb4fff07c57d736dbc6cfc
Diffstat (limited to 'jni/com_android_nfc_NativeLlcpSocket.cpp')
-rw-r--r--jni/com_android_nfc_NativeLlcpSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/jni/com_android_nfc_NativeLlcpSocket.cpp b/jni/com_android_nfc_NativeLlcpSocket.cpp
index c4df5c3..fb6fd22 100644
--- a/jni/com_android_nfc_NativeLlcpSocket.cpp
+++ b/jni/com_android_nfc_NativeLlcpSocket.cpp
@@ -322,7 +322,7 @@ static jint com_android_nfc_NativeLlcpSocket_doReceive(JNIEnv *e, jobject o, jby
{
/* Return status should be either SUCCESS or PENDING */
LOGE("phLibNfc_Llcp_Recv() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret));
- return 0;
+ goto clean_and_return;
}
TRACE("phLibNfc_Llcp_Recv() returned 0x%04x[%s]", ret, nfc_jni_get_status_name(ret));