Thread (47 messages) 47 messages, 5 authors, 2021-03-21

Re: [PATCH v2 8/9] parse-options: don't leak alias help messages

flat view

From: Andrzej Hunt <hidden>
Date: 2021-03-14 20:01:29

On 14 Mar 2021, at 19:47, Andrzej Hunt via GitGitGadget [off-list ref] wrote:
+    for (i = 0; options[i].type != OPTION_END; i++) {
+        if (options[i].flags & PARSE_OPT_FROM_ALIAS) {
+            free((void *)options[i].help);
+        }
Oops, I did it again: I’ll remove these unnecessary braces in V3.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help