From 5d78ec76c86634faabda04d356790f66c82dd21c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 2 Nov 2020 15:46:51 -0800 Subject: [PATCH] s3: modules: vfs_glusterfs: Fix leak of char **lines onto mem_ctx on return. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14486 Signed-off-by: Jeremy Allison Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Tue Nov 3 01:56:59 UTC 2020 on sn-devel-184 (cherry picked from commit 7d846cd178d653600c71ee4bd6a491a9e48a56da) Autobuild-User(v4-12-test): Karolin Seeger Autobuild-Date(v4-12-test): Tue Nov 3 13:02:10 UTC 2020 on sn-devel-184 --- source3/modules/vfs_glusterfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index c5154330ee3..b733adfff5c 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -338,11 +338,13 @@ static int check_for_write_behind_translator(TALLOC_CTX *mem_ctx, "Please check the vfs_glusterfs(8) manpage for " "further details.\n", volume); + TALLOC_FREE(lines); TALLOC_FREE(option); TALLOC_FREE(buf); return -1; } + TALLOC_FREE(lines); TALLOC_FREE(option); TALLOC_FREE(buf); return 0; -- 2.47.2