diff mbox

[5/6] getcifsacl: free strings returned by wbcLookupSid

Message ID 1354634204-21602-6-git-send-email-jlayton@samba.org (mailing list archive)
State New, archived
Headers show

Commit Message

Jeff Layton Dec. 4, 2012, 3:16 p.m. UTC
Signed-off-by: Jeff Layton <jlayton@samba.org>
---
 getcifsacl.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/getcifsacl.c b/getcifsacl.c
index ac3674c..256b2ad 100644
--- a/getcifsacl.c
+++ b/getcifsacl.c
@@ -211,6 +211,8 @@  print_sid(struct cifs_sid *sidptr, int raw)
 		if (strlen(domain_name))
 			printf("%c", '\\');
 		printf("%s", sidname);
+		wbcFreeMemory(domain_name);
+		wbcFreeMemory(sidname);
 		return;
 	}