plug a small memory leak in tog's show_diff_view() function
diff --git a/tog/tog.c b/tog/tog.c
index 2f62fb3..bc64c6a 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -3580,7 +3580,9 @@ show_diff_view(struct tog_view *view)
free(id_str1);
free(id_str2);
- return draw_file(view, header);
+ err = draw_file(view, header);
+ free(header);
+ return err;
}
static const struct got_error *