diff --git a/modules/dialog/dlg_profile.c b/modules/dialog/dlg_profile.c index 39dc1dff67a..9a4708214b6 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;