eb8bed5c73
We do not free the encoder structure on failure. Fix that. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>