mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 04:09:46 +00:00
coverity: closedir on error path
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
dab75acca0
commit
9baa57bdd4
@ -2538,6 +2538,10 @@ out_free:
|
||||
lxcsnap_free(&snaps[i]);
|
||||
free(snaps);
|
||||
}
|
||||
process_lock();
|
||||
if (closedir(dir))
|
||||
WARN("failed to close directory");
|
||||
process_unlock();
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user