The branch, master has been updated
via 713203b51de utils: Fix memory leak CID:1499405
from fd3003a28b1 vfs: Convert pread, pwrite and fsync recv interfaces to
macros
https://git.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 713203b51de3763811e3d1cffec96f7dc9d63d9d
Author: Vinit Agnihotri <[email protected]>
Date: Fri Aug 8 18:47:57 2025 +0530
utils: Fix memory leak CID:1499405
free memory allocated to status on error condition.
Signed-off-by: Vinit Agnihotri <[email protected]>
Reviewed-by: Douglas Bagnall <[email protected]>
Reviewed-by: Volker Lendecke <[email protected]>
Autobuild-User(master): Volker Lendecke <[email protected]>
Autobuild-Date(master): Sat Aug 9 07:37:05 UTC 2025 on atb-devel-224
-----------------------------------------------------------------------
Summary of changes:
source3/utils/smbget.c | 1 +
1 file changed, 1 insertion(+)
Changeset truncated at 500 lines:
diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c
index a9899bafa13..d9744405bed 100644
--- a/source3/utils/smbget.c
+++ b/source3/utils/smbget.c
@@ -342,6 +342,7 @@ static void print_progress(const char *name, time_t start,
time_t now,
if (required > available) {
if (asprintf(&filename, "...%s",
name + required - available + 3) == -1) {
+ free(status);
return;
}
} else {
--
Samba Shared Repository