Fix analyze warnings
Fix a memory leak of the array passed to excluded activity types. Still a 128byte leak somewhere there but it's in the OS dispatcher.