Thread (222 messages) 222 messages, 11 authors, 2020-04-06

Re: [PATCH v5 03/15] bugreport: gather git version and build info

From: Martin Ågren <hidden>
Date: 2020-01-30 22:20:11

On Fri, 24 Jan 2020 at 04:40, [off-list ref] wrote:
+static void get_system_info(struct strbuf *sys_info)
+{
+       struct strbuf version_info = STRBUF_INIT;
+
+       /* get git version from native cmd */
+       strbuf_addstr(sys_info, "git version:\n");
+       get_version_info(&version_info, 1);
+       strbuf_addbuf(sys_info, &version_info);
+       strbuf_complete_line(sys_info);
This leaks version_info.
+}

Martin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help