From: Volker Lendecke Date: Thu, 8 Jun 2023 10:20:31 +0000 (+0200) Subject: smbd: Do an early talloc_free() in reply_search() X-Git-Tag: talloc-2.4.1~472 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73ebbb7244d0ae77da3d73331125d5d585b95232;p=thirdparty%2Fsamba.git smbd: Do an early talloc_free() in reply_search() Don't wait for the main loop to free file names no longer used. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb1_reply.c b/source3/smbd/smb1_reply.c index 96fb929cf5c..2ea5cc5f3ce 100644 --- a/source3/smbd/smb1_reply.c +++ b/source3/smbd/smb1_reply.c @@ -1402,6 +1402,7 @@ void reply_search(struct smb_request *req) } numentries++; } + TALLOC_FREE(fname); } }