1
0
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:
Andreas Schneider 2013-02-20 10:25:55 +01:00 committed by Alexander Bokovoy
parent 3a3baa442e
commit 312355ad59

View File

@ -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':