Fix memory leak in completion handler.

Coverty CID #56739

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>