From 9e9aca86a21302c0ea26557b374b74a68f9af40d Mon Sep 17 00:00:00 2001 From: Sylvain Fonteneau Date: Tue, 30 Nov 2010 16:44:04 +0100 Subject: Fixed error case where dynamic semaphore was not released. Change-Id: I2db58875daaa85289dcb4fff07c57d736dbc6cfc --- jni/com_android_nfc_NativeLlcpSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jni/com_android_nfc_NativeLlcpSocket.cpp') 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)); -- cgit v1.1