summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-10-29 21:12:14 +0100
committerJeremy Allison <jra@samba.org>2012-10-30 20:22:46 +0100
commit39e58d6845ee4dab0e9ae1537fccaed837ead728 (patch)
tree73553f44813a4edddfab26cc9c6803e803820bd1
parentaca807c94cdb44cc846562400495ee3a7114f8e0 (diff)
downloadsamba-39e58d6845ee4dab0e9ae1537fccaed837ead728.tar.gz
samba-39e58d6845ee4dab0e9ae1537fccaed837ead728.tar.bz2
samba-39e58d6845ee4dab0e9ae1537fccaed837ead728.zip
s3fs-utils: Free the popt context in smbcacls and smbquotas.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Oct 30 20:22:46 CET 2012 on sn-devel-104
-rw-r--r--source3/utils/smbcacls.c2
-rw-r--r--source3/utils/smbcquotas.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index 3d18bee9d5..7df4e48725 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -1435,6 +1435,8 @@ static struct cli_state *connect_one(struct user_auth_info *auth_info,
return -1;
}
+ poptFreeContext(pc);
+
string_replace(path,'/','\\');
server = talloc_strdup(frame, path+2);
diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c
index be82e34997..b96210386d 100644
--- a/source3/utils/smbcquotas.c
+++ b/source3/utils/smbcquotas.c
@@ -688,6 +688,8 @@ FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT", "SETSTRING" },
exit(EXIT_PARSE_ERROR);
}
+ poptFreeContext(pc);
+
string_replace(path, '/', '\\');
server = SMB_STRDUP(path+2);