git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e7d037
)
s3: utils: net. Fix return paths that don't free talloc stackframe.
author
Jeremy Allison
<jra@samba.org>
Tue, 21 Nov 2017 00:09:39 +0000
(
00:09
+0000)
committer
Martin Schwenke
<martins@samba.org>
Tue, 21 Nov 2017 04:03:16 +0000
(
05:03
+0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13151
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
source3/utils/net_usershare.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_usershare.c
b/source3/utils/net_usershare.c
index 78d38daaf97b4fae4764773544dd8527f302a844..8357296f72793734f05a0f0ba421fe8638a974e1 100644
(file)
--- a/
source3/utils/net_usershare.c
+++ b/
source3/utils/net_usershare.c
@@
-647,13
+647,16
@@
static int net_usershare_add(struct net_context *c, int argc, const char **argv)
us_comment = "";
arg_acl = "S-1-1-0:R";
- if (c->display_usage)
+ if (c->display_usage) {
+ TALLOC_FREE(ctx);
return net_usershare_add_usage(c, argc, argv);
+ }
switch (argc) {
case 0:
case 1:
default:
+ TALLOC_FREE(ctx);
return net_usershare_add_usage(c, argc, argv);
case 2:
cp_sharename = argv[0];