HttpEndPoint: Fix memory leak

Change-Id: I94bed269e4a57a13758d4470fbbc3dc60c1aeedc