[PATCHv2 4/4] service: Fixed Memory Leak