[PATCH 2/4] s3fs-utils: Free the popt context in smbcacls and smbquotas.

Andreas Schneider asn at samba.org
Mon Oct 29 14:12:14 MDT 2012


Signed-off-by: Andreas Schneider <asn at samba.org>
---
 source3/utils/smbcacls.c   | 2 ++
 source3/utils/smbcquotas.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index 3d18bee..7df4e48 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 be82e34..b962103 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);
-- 
1.8.0




More information about the samba-technical mailing list