Commit Diff
- Commit:
13cebc62497c5f3b3bfb884c834ebc63ac9be4040bd5dbc4ce1dd586700ba988- From:
- Kyle Ackerman <kack@kyleackerman.net>
- Date:
- Message:
- Plug a memory leak in gitconfig.c conf_parse_line frees *section before allocating a new one, which leaks *section on the last iteration of conf_parse. ok stsp@
- Actions:
- Patch | Tree
--- lib/gitconfig.c +++ lib/gitconfig.c @@ -306,6 +306,7 @@ conf_parse(struct got_gitconfig *conf, int trans, char } if (cp != line) log_print("conf_parse: last line unterminated, ignored."); + free(section); return NULL; }
