httpendpoint: Release correct size

Change-Id: Ie51d5774ad689ce7482bff27fcaf3f0beb2c946c