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:
Christian Göttsche
2023-12-11 17:27:44 +01:00
committed by Serge Hallyn
parent 6178f5a3df
commit 92b889b671

View File

@@ -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,