]> git.proxmox.com Git - mirror_lxc.git/commitdiff
coverity: #1438232
author2xsec <dh48.jeong@samsung.com>
Mon, 6 Aug 2018 07:57:53 +0000 (16:57 +0900)
committer2xsec <dh48.jeong@samsung.com>
Mon, 6 Aug 2018 07:57:53 +0000 (16:57 +0900)
Failure to restore non-local value

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
src/lxc/pam/pam_cgfs.c

index f23b84774319b5cbddd685cbd7d3baf875ef31a7..106a325fb31f180e7191aa53385500a6ceb63f4f 100644 (file)
@@ -1911,8 +1911,9 @@ on_success:
        bret = true;
 
 on_error:
-       free(fpath);
+       *lastslash = oldv;
 
+       free(fpath);
        free(isolcpus);
        free(isolmask);