Merge branch 'sb/line-log-plug-pairdiff-leak' into maint
[git/git.git] / line-log.c
index a9ce014..a5ed9e3 100644 (file)
@@ -1099,6 +1099,7 @@ static int process_all_files(struct line_log_data **range_out,
                        rg->pair = diff_filepair_dup(queue->queue[i]);
                        memcpy(&rg->diff, pairdiff, sizeof(struct diff_ranges));
                }
+               free(pairdiff);
        }
 
        return changed;