recorderendpoint: Fix memory leak

Change-Id: I7e1da798b4b7881222aa0f6f5b9c14f1b523ef62