commit 70f07862e9430765dc7788416a3718ddf6e14520 from: Mark Jamsek via: Thomas Adam date: Mon Jan 23 18:21:06 2023 UTC got: don't leak pathlist in commit and revert commands ok stsp@ commit - 6ec3d39ca03fd5b2f4bf0d896a3b9171644390cd commit + 70f07862e9430765dc7788416a3718ddf6e14520 blob - be354c6eccc813b8775349e6f2615d21cc0a6884 blob + c56e63ad7fc66dd2f713ec26562fc1ed363ed3d8 --- got/got.c +++ got/got.c @@ -8522,6 +8522,7 @@ done: if (error == NULL) error = pack_err; } + got_pathlist_free(&paths, GOT_PATHLIST_FREE_PATH); free(path); free(cwd); return error; @@ -8873,6 +8874,7 @@ done: if (error == NULL) error = pack_err; } + got_pathlist_free(&paths, GOT_PATHLIST_FREE_PATH); free(cwd); free(id_str); free(gitconfig_path);