mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
smbpasswd: Don't leak memory.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
3a3baa442e
commit
312355ad59
@ -137,6 +137,7 @@ static int process_options(int argc, char **argv, int local_flags)
|
||||
case 'n':
|
||||
local_flags |= LOCAL_SET_NO_PASSWORD;
|
||||
local_flags &= ~LOCAL_SET_PASSWORD;
|
||||
SAFE_FREE(new_passwd);
|
||||
new_passwd = smb_xstrdup("NO PASSWORD");
|
||||
break;
|
||||
case 'r':
|
||||
|
Loading…
x
Reference in New Issue
Block a user