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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jeff Layton <jlayton@xxxxxxxxx>
---
 getcifsacl.c | 2 ++
 1 file changed, 2 insertions(+)

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;
 	}
 
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux