mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
spoolss: Add missing LeaveCriticalSection on error path (Smatch).
This commit is contained in:
parent
a840c35d42
commit
df271e0e8f
1 changed files with 4 additions and 1 deletions
|
@ -215,7 +215,10 @@ static backend_t * backend_load(LPWSTR dllname, LPWSTR name, LPWSTR regroot)
|
|||
id = used_backends;
|
||||
|
||||
backend[id] = heap_alloc_zero(sizeof(backend_t));
|
||||
if (!backend[id]) return NULL;
|
||||
if (!backend[id]) {
|
||||
LeaveCriticalSection(&backend_cs);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
backend[id]->dllname = strdupW(dllname);
|
||||
backend[id]->name = strdupW(name);
|
||||
|
|
Loading…
Reference in a new issue