]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Do an early talloc_free() in reply_search()
authorVolker Lendecke <vl@samba.org>
Thu, 8 Jun 2023 10:20:31 +0000 (12:20 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 8 Jun 2023 17:39:39 +0000 (17:39 +0000)
Don't wait for the main loop to free file names no longer used.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb1_reply.c

index 96fb929cf5cd0475aabb6c065bec09884b843d75..2ea5cc5f3ce21b2c85f31d3a01bd474dc7c1e4ba 100644 (file)
@@ -1402,6 +1402,7 @@ void reply_search(struct smb_request *req)
                                }
                                numentries++;
                        }
+                       TALLOC_FREE(fname);
                }
        }