commit 763f29f674ab44d78d7fa28c4aacb167eb559aee from: Stefan Sperling date: Sun Nov 22 01:51:29 2020 UTC remove redundant lines of code from close_file2_and_reuse_file1() commit - 751e0afb82292de3d0debf5fce129cd75714375d commit + 763f29f674ab44d78d7fa28c4aacb167eb559aee blob - e5acb6eab4e0cbdf552db5630655d93e5574e2e7 blob + ca38022c76d7d9781f698cf2f8a68e4314a9e20c --- lib/blame.c +++ lib/blame.c @@ -484,10 +484,6 @@ close_file2_and_reuse_file1(struct got_blame *blame) blame->nlines2 = blame->nlines1; blame->nlines1 = 0; - - free(blame->line_offsets2); - blame->line_offsets2 = blame->line_offsets1; - blame->line_offsets2 = NULL; diff_data_free(blame->data2); /* does not free pointer itself */ memset(blame->data2, 0, sizeof(*blame->data2));