Martin Ågren
0bfb48e672
builtin/commit-graph.c: UNLEAK variables
...
`graph_verify()`, `graph_read()` and `graph_write()` do the hard work of
`cmd_commit_graph()`. As soon as these return, so does
`cmd_commit_graph()`.
`strbuf_getline()` may allocate memory in the strbuf, yet return EOF.
We need to release the strbuf or UNLEAK it. Go for the latter since we
are close to returning from `graph_write()`.
`graph_write()` also fails to free the strings in the string list. They
have been added to the list with `strdup_strings` set to 0. We could
flip `strdup_strings` before clearing the list, which is our usual hack
in situations like this. But since we are about to exit, let's just
UNLEAK the whole string list instead.
UNLEAK `graph` in `graph_verify`. While at it, and for consistency,
UNLEAK in `graph_read()` as well, and remove an unnecessary UNLEAK just
before dying.
Signed-off-by: Martin Ågren <martin.agren@gmail.com >
Signed-off-by: Derrick Stolee <dstolee@microsoft.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2018-10-07 08:25:05 +09:00
..
2018-08-20 11:33:53 -07:00
2018-09-04 14:31:38 -07:00
2018-08-13 14:14:44 -07:00
2018-08-13 14:14:43 -07:00
2017-11-13 10:51:14 +09:00
2018-08-20 11:33:53 -07:00
2018-08-16 11:17:10 -07:00
2018-08-20 11:33:53 -07:00
2018-08-13 14:14:43 -07:00
2018-02-12 13:09:35 -08:00
2017-06-15 12:56:22 -07:00
2017-11-15 12:04:57 +09:00
2018-08-27 14:33:43 -07:00
2018-08-20 11:33:53 -07:00
2018-08-13 14:14:42 -07:00
2018-08-15 15:08:28 -07:00
2018-05-13 10:45:05 +09:00
2018-10-07 08:25:05 +09:00
2018-06-29 10:43:39 -07:00
2018-08-20 11:33:53 -07:00
2018-08-15 15:08:23 -07:00
2018-05-02 13:59:49 +09:00
2017-05-30 14:45:03 +09:00
2018-07-18 12:20:28 -07:00
2017-08-03 13:11:02 -07:00
2017-10-07 16:27:55 +09:00
2018-08-13 14:14:42 -07:00
2018-06-29 10:43:39 -07:00
2018-08-17 13:09:56 -07:00
2018-08-15 15:08:23 -07:00
2018-05-08 15:59:16 +09:00
2018-08-15 15:08:28 -07:00
2018-08-15 15:08:23 -07:00
2017-10-04 11:35:29 +09:00
2018-08-15 15:08:23 -07:00
2018-09-20 12:25:05 -07:00
2017-09-27 15:45:24 +09:00
2018-08-20 11:33:53 -07:00
2018-07-18 12:20:28 -07:00
2018-06-01 15:06:37 +09:00
2018-08-15 15:08:23 -07:00
2018-07-24 10:19:29 -07:00
2017-08-26 22:55:04 -07:00
2018-08-15 15:08:23 -07:00
2018-08-13 14:14:43 -07:00
2018-05-23 14:38:15 +09:00
2018-05-16 11:42:03 +09:00
2018-06-29 10:43:39 -07:00
2017-06-15 12:56:22 -07:00
2017-11-09 14:31:27 +09:00
2018-07-16 14:27:39 -07:00
2018-07-18 12:20:28 -07:00
2018-08-15 15:08:23 -07:00
2018-05-16 11:42:03 +09:00
2018-05-16 11:42:03 +09:00
2018-05-30 14:04:05 +09:00
2018-06-29 10:43:39 -07:00
2018-07-18 12:20:28 -07:00
2018-08-22 11:17:05 -07:00
2018-05-02 13:59:50 +09:00
2018-04-12 11:38:56 +09:00
2017-06-15 12:56:22 -07:00
2018-08-14 12:29:57 -07:00
2018-08-15 15:08:23 -07:00
2018-08-27 14:33:43 -07:00
2018-08-27 14:33:43 -07:00
2018-08-27 13:13:59 -07:00
2018-08-17 13:09:56 -07:00
2018-04-26 12:28:43 +09:00
2018-08-02 15:30:42 -07:00
2018-07-18 12:20:28 -07:00
2017-09-22 12:49:57 +09:00
2017-05-30 14:45:04 +09:00
2018-08-27 14:33:43 -07:00
2018-08-20 12:40:31 -07:00
2018-08-15 15:08:23 -07:00
2017-09-14 15:17:59 +09:00
2018-08-02 15:30:43 -07:00
2018-08-02 15:30:42 -07:00
2018-07-18 12:20:28 -07:00
2018-08-20 12:41:34 -07:00
2018-08-20 11:33:53 -07:00
2018-08-27 14:33:43 -07:00
2018-03-15 12:01:08 -07:00
2018-08-17 13:09:56 -07:00
2018-08-17 13:09:56 -07:00
2018-05-29 00:28:22 +09:00
2018-05-16 11:42:03 +09:00
2017-06-15 12:56:22 -07:00
2018-09-07 19:05:20 -07:00
2017-11-06 10:31:08 +09:00
2018-07-18 12:20:28 -07:00
2018-05-16 11:42:03 +09:00
2018-08-15 15:08:23 -07:00
2018-08-20 11:33:53 -07:00
2018-06-04 12:26:01 +09:00
2018-02-09 10:24:50 -08:00
2018-08-13 14:14:43 -07:00
2018-07-18 15:45:14 -07:00
2017-06-15 12:56:22 -07:00
2018-06-29 10:43:39 -07:00
2017-06-15 12:56:22 -07:00
2018-04-09 06:14:45 +09:00
2018-08-17 15:18:01 -07:00
2018-08-17 13:09:56 -07:00