diff options
author | Stefan Metzmacher <metze@samba.org> | 2022-10-31 13:16:25 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2022-11-09 11:18:02 +0000 |
commit | 76adda9d2fea9f93f4cf97536db5c0be6deeb98c (patch) | |
tree | dd87db53a8d4997a7d7639dd736e2f415445c3c6 /lib/replace | |
parent | 3030813765ff2f9ef6c894a4e6eb51601fe07109 (diff) | |
download | samba-76adda9d2fea9f93f4cf97536db5c0be6deeb98c.tar.gz |
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
Diffstat (limited to 'lib/replace')
-rw-r--r-- | lib/replace/snprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/replace/snprintf.c b/lib/replace/snprintf.c index 6e4424b0b31..de814af4164 100644 --- a/lib/replace/snprintf.c +++ b/lib/replace/snprintf.c @@ -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; } |