Fix bug #10187 - Missing talloc_free can leak stackframe in error path.