src/useradd: free string
useradd.c:2329:10: warning: Potential leak of memory pointed to by 'btrfs_check' [unix.Malloc]
This commit is contained in:
committed by
Serge Hallyn
parent
6178f5a3df
commit
92b889b671
@@ -2319,6 +2319,7 @@ static void create_home (void)
|
||||
Prog, path);
|
||||
fail_exit(E_HOMEDIR);
|
||||
}
|
||||
free(btrfs_check);
|
||||
// make subvolume to mount for user instead of directory
|
||||
if (btrfs_create_subvolume(path)) {
|
||||
fprintf(stderr,
|
||||
|
||||
Reference in New Issue
Block a user