KmsHttpEPServer: Fix memory leak

Change-Id: Ia79b09c3fc7612a88c16c7405f648bf7afc33f9e