summaryrefslogtreecommitdiffstats
path: root/trailer.c
diff options
context:
space:
mode:
Diffstat (limited to 'trailer.c')
-rw-r--r--trailer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/trailer.c b/trailer.c
index 3a0710a458..e1d83390b6 100644
--- a/trailer.c
+++ b/trailer.c
@@ -1111,13 +1111,12 @@ void process_trailers(const char *file,
}
print_all(outfile, &head, opts);
-
free_all(&head);
- trailer_info_release(&info);
/* Print the lines after the trailers as is */
if (!opts->only_trailers)
fwrite(sb.buf + info.trailer_block_end, 1, sb.len - info.trailer_block_end, outfile);
+ trailer_info_release(&info);
if (opts->in_place)
if (rename_tempfile(&trailers_tempfile, file))