diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-07-18 04:58:31 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-07-18 04:58:31 +0930 |
commit | 634a63d934db6f01fd8c2584af9ab05e05762a0d (patch) | |
tree | f39bc8205eb4609cba112ad1a66972b4c1317a88 /source3 | |
parent | 84fb37fe372bc22e0a3ceca8030bff459225044a (diff) | |
download | samba-634a63d934db6f01fd8c2584af9ab05e05762a0d.tar.gz samba-634a63d934db6f01fd8c2584af9ab05e05762a0d.tar.bz2 samba-634a63d934db6f01fd8c2584af9ab05e05762a0d.zip |
smbpasswd: always free frame.
We're about to exit, so it doesn't really matter, but might as well
unify the paths.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/smbpasswd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index bc3aaff54e..3689983444 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -602,10 +602,10 @@ int main(int argc, char **argv) if (local_flags & LOCAL_AM_ROOT) { secrets_init(); - return process_root(local_flags); - } - - ret = process_nonroot(local_flags); + ret = process_root(local_flags); + } else { + ret = process_nonroot(local_flags); + } TALLOC_FREE(frame); return ret; } |