Download raw body.
gotwebd: plug memleaks in got_get_repo_commits
On Fri, Sep 02, 2022 at 12:50:28PM +0200, Omar Polo wrote: > second attemp at fixing this. For my own mental sanity and for who > will read this, I've split it into three separate commits to ease > reviewing. The first two should be evident, the third one is a bit > more convoluted: it avoids calling two times got_get_repo_commit > (singular!) and leaking at every iteration the contents of > `repo_commit'. Instead, drop the new_repo_commit var and only use > repo_commit. To ease tracking the lifetime of it, immediately push it > into the tailq like got_get_repo_tags does. > > ok? Nice. ok stsp
gotwebd: plug memleaks in got_get_repo_commits