commit cea8a93531ed435f448ee3e19eb99c25c05aee9f from: Stefan Sperling via: Thomas Adam date: Tue Dec 3 12:40:45 2024 UTC gotwebd: plug a memory leak which would trigger via pagination of commits ok op@ commit - e14e4525dd2c0b0716d2ec80533ed214e03b80e5 commit + cea8a93531ed435f448ee3e19eb99c25c05aee9f blob - aa5881711eaf5eeeb234550d61669ae5267e9bb1 blob + 35e0cc59d4ce706f2d7da82738fdc1054acd4ba9 --- gotwebd/got_operations.c +++ gotwebd/got_operations.c @@ -433,6 +433,7 @@ got_get_repo_commits(struct request *c, size_t limit) t->more_id = strdup(repo_commit->commit_id); if (t->more_id == NULL) error = got_error_from_errno("strdup"); + gotweb_free_repo_commit(repo_commit); goto done; }