]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - qnx/src/api/gates/GateMutex.c
Linux: Update user AF_RPMSG define for 5.15+ kernels
[ipc/ipcdev.git] / qnx / src / api / gates / GateMutex.c
index 32608ab367e33f84a50e55f78c1d2544f62c358b..145b0cb16e07216e257ddfc538dbcf39cc1b54ca 100644 (file)
@@ -102,12 +102,15 @@ GateMutex_Handle GateMutex_create(const GateMutex_Params * params,
 
 Int GateMutex_delete(GateMutex_Handle * handle)
 {
+    GateMutex_Object * obj = (GateMutex_Object *)*handle;
+
     if (handle == NULL) {
         return GateMutex_E_INVALIDARG;
     }
     if (*handle == NULL) {
         return GateMutex_E_INVALIDARG;
     }
+    pthread_mutex_destroy(&(obj->mutex));
     free(*handle);
     *handle = NULL;