mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-15 02:19:39 +00:00
coverity: #1426029
fix use after free Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
ed20740bca
commit
b44c0a6787
@ -207,8 +207,8 @@ int ovl_clonepaths(struct lxc_storage *orig, struct lxc_storage *new, const char
|
|||||||
|
|
||||||
odelta = strchr(nsrc, ':');
|
odelta = strchr(nsrc, ':');
|
||||||
if (!odelta) {
|
if (!odelta) {
|
||||||
free(osrc);
|
|
||||||
ERROR("Failed to find \":\" in \"%s\"", nsrc);
|
ERROR("Failed to find \":\" in \"%s\"", nsrc);
|
||||||
|
free(osrc);
|
||||||
return -22;
|
return -22;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user