applications: Fix a memory leak

11 jobs for wip/sadiq/fix-leak in 3 minutes and 40 seconds (queued for 2 seconds)