Skip to content
Snippets Groups Projects
Commit ce5a9c4f authored by Mark Spencer's avatar Mark Spencer
Browse files

Fix potential deadlock (bug #6169)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7856 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e2ef6181
No related branches found
No related tags found
No related merge requests found
......@@ -122,8 +122,10 @@ int ast_db_deltree(const char *family, const char *keytree)
}
ast_mutex_lock(&dblock);
if (dbinit())
if (dbinit()) {
ast_mutex_unlock(&dblock);
return -1;
}
memset(&key, 0, sizeof(key));
memset(&data, 0, sizeof(data));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment