[sr-dev] git:4:9083ac32: dialog: release remote profile lock on remove operation
Daniel-Constantin Mierla
miconda at gmail.com
Thu Oct 1 16:53:32 CEST 2015
Module: kamailio
Branch: 4
Commit: 9083ac32755565a97421d2b6100bc477c19175f5
URL: https://github.com/kamailio/kamailio/commit/9083ac32755565a97421d2b6100bc477c19175f5
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-10-01T16:32:48+02:00
dialog: release remote profile lock on remove operation
(cherry picked from commit 04bd28fffdfed05dda9a8fff41b220a3bb008a17)
---
Modified: modules/dialog/dlg_profile.c
---
Diff: https://github.com/kamailio/kamailio/commit/9083ac32755565a97421d2b6100bc477c19175f5.diff
Patch: https://github.com/kamailio/kamailio/commit/9083ac32755565a97421d2b6100bc477c19175f5.patch
---
diff --git a/modules/dialog/dlg_profile.c b/modules/dialog/dlg_profile.c
index 39dc1df..9a47082 100644
--- a/modules/dialog/dlg_profile.c
+++ b/modules/dialog/dlg_profile.c
@@ -394,6 +394,7 @@ int remove_profile(dlg_profile_table_t *profile, str *value, str *puid)
lh->next = lh->prev = NULL;
if(lh->linker) shm_free(lh->linker);
p_entry->content--;
+ lock_release(&profile->lock );
return 1;
}
lh = lh->next;
More information about the sr-dev
mailing list