mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-13 14:23:44 +00:00
call fclose() for pid_fp on failure
Signed-off-by: S.Çağlar Onur <caglar@10ur.org> Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
7f1dea04a4
commit
ccef566eb0
@ -346,6 +346,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
out:
|
out:
|
||||||
lxc_container_put(c);
|
lxc_container_put(c);
|
||||||
|
if (pid_fp)
|
||||||
|
fclose(pid_fp);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user