mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib/replace: fix memory leak in snprintf replacements
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15230 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Nov 9 11:18:02 UTC 2022 on sn-devel-184
This commit is contained in:
parent
3030813765
commit
76adda9d2f
@ -751,6 +751,8 @@ done:
|
||||
|
||||
while (chunks) {
|
||||
cnk = chunks->next;
|
||||
if (chunks->min_star) free(chunks->min_star);
|
||||
if (chunks->max_star) free(chunks->max_star);
|
||||
free(chunks);
|
||||
chunks = cnk;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user