From: Anoop C S Date: Thu, 25 Jun 2026 06:21:53 +0000 (+0530) Subject: vfs_ceph_rgw: Fix config memory leak on load failure X-Git-Tag: talloc-2.5.0~386 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb84a984be41c5d77379dba0765346d4f3a6aa24;p=thirdparty%2Fsamba.git vfs_ceph_rgw: Fix config memory leak on load failure Free config_tmp when vfs_ceph_rgw_load_config() fails after allocation. Signed-off-by: Anoop C S Reviewed-by: Guenther Deschner --- diff --git a/source3/modules/vfs_ceph_rgw.c b/source3/modules/vfs_ceph_rgw.c index 0307de25fb7..88146591dd2 100644 --- a/source3/modules/vfs_ceph_rgw.c +++ b/source3/modules/vfs_ceph_rgw.c @@ -2260,6 +2260,9 @@ static bool vfs_ceph_rgw_load_config(struct vfs_handle_struct *handle, *config = config_tmp; ret = true; out: + if (!ret) { + TALLOC_FREE(config_tmp); + } return ret; }