diff options
author | Andreas Schneider <asn@samba.org> | 2013-02-20 10:25:55 +0100 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2013-02-22 16:36:14 +0100 |
commit | 312355ad59001fcc1eaa30344d69fc8c91acebc8 (patch) | |
tree | d62e9d9e41eef1996b3b50c7ba915cb32e63fb69 /source3 | |
parent | 3a3baa442ed77dbc0688d25571bc0edb5c367bcb (diff) | |
download | samba-312355ad59001fcc1eaa30344d69fc8c91acebc8.tar.gz samba-312355ad59001fcc1eaa30344d69fc8c91acebc8.tar.bz2 samba-312355ad59001fcc1eaa30344d69fc8c91acebc8.zip |
smbpasswd: Don't leak memory.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/smbpasswd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 3af7e56f7d..d93261eade 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -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': |