kmshttpendpoint: Fix memory leaks in info messages

Change-Id: I92de80f58d093b23e751d690cebc94b0dfebd560