Download raw body.
lib/worktree.c: fix use after free()
fix a use after free() diff 56d0a75325a6ada09ad4f1c586f7fde7971b52f6 /home/naddy/got blob - 5dfe5fbfdef7f0419e78c3302df7d292acfa2f2e file + lib/worktree.c --- lib/worktree.c +++ lib/worktree.c @@ -510,8 +510,8 @@ got_worktree_close(struct got_worktree *worktree) free(worktree->root_path); free(worktree->gotconfig_path); got_gotconfig_free(worktree->gotconfig); - free(worktree); close(worktree->root_fd); + free(worktree); return err; } -- Christian "naddy" Weisgerber naddy@mips.inka.de
lib/worktree.c: fix use after free()