No, you don’t. Any stack-allocated resources are freed when the function returns. WaitGroup is just there for synchronization.