don't crash in 'got blame' error path
diff --git a/lib/blame.c b/lib/blame.c
index b3d6dbe..48042cc 100644
--- a/lib/blame.c
+++ b/lib/blame.c
@@ -269,9 +269,10 @@ done:
got_object_blob_close(blob);
if (commit)
got_object_commit_close(commit);
- if (err)
- blame_close(blame);
- else
+ if (err) {
+ if (blame)
+ blame_close(blame);
+ } else
*blamep = blame;
return err;