summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-07-18 04:58:31 +0930
committerRusty Russell <rusty@rustcorp.com.au>2012-07-18 04:58:31 +0930
commit634a63d934db6f01fd8c2584af9ab05e05762a0d (patch)
treef39bc8205eb4609cba112ad1a66972b4c1317a88 /source3/utils
parent84fb37fe372bc22e0a3ceca8030bff459225044a (diff)
downloadsamba-634a63d934db6f01fd8c2584af9ab05e05762a0d.tar.gz
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/utils')
-rw-r--r--source3/utils/smbpasswd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index bc3aaff54ec..36899834448 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;
}