Commit 4318bff5 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Free the string allocated by strdup when printing the help into paragraphs.

parent 794228e1
......@@ -361,6 +361,7 @@ void argparse_usage(struct argparse *self) {
}
}
if (dangling) fprintf(stdout, "\n");
free(str);
} else {
fprintf(stdout, "\n");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment