|
@@ -246,7 +246,6 @@ saAmfDispatch (
|
|
|
*/
|
|
*/
|
|
|
if (amfInstance->finalize == 1) {
|
|
if (amfInstance->finalize == 1) {
|
|
|
error = SA_OK;
|
|
error = SA_OK;
|
|
|
- pthread_mutex_unlock (&amfInstance->mutex);
|
|
|
|
|
goto error_unlock;
|
|
goto error_unlock;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -392,8 +391,9 @@ saAmfDispatch (
|
|
|
} while (cont);
|
|
} while (cont);
|
|
|
|
|
|
|
|
error_unlock:
|
|
error_unlock:
|
|
|
- saHandleInstancePut (&amfHandleDatabase, *amfHandle);
|
|
|
|
|
|
|
+ pthread_mutex_unlock (&amfInstance->mutex);
|
|
|
error_nounlock:
|
|
error_nounlock:
|
|
|
|
|
+ saHandleInstancePut (&amfHandleDatabase, *amfHandle);
|
|
|
return (error);
|
|
return (error);
|
|
|
}
|
|
}
|
|
|
|
|
|