KmsHttpEPServer: Fix memory leak

Change-Id: I1c7c56991776ca356fee2c099379273766ee75c1