提交 90a734dc 编写于 作者: Y Yasushi SHOJI 提交者: Junio C Hamano

[PATCH] possible memory leak in diff.c::diff_free_filepair()

Here is a patch to fix the problem in the simplest way.
上级 d57306c7
......@@ -1010,9 +1010,8 @@ void diff_flush(int diff_output_style, int line_termination)
diff_flush_name(p, line_termination);
break;
}
}
for (i = 0; i < q->nr; i++)
diff_free_filepair(q->queue[i]);
}
free(q->queue);
q->queue = NULL;
q->nr = q->alloc = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册