plug memory leaks in 'got fetch' and 'got send'
commitad24f7125f40392151477f227319ba2262d39f8c
authorMark Jamsek <mark@jamsek.dev>
Wed, 13 Nov 2024 01:05:15 +0000 (13 01:05 +0000)
committerThomas Adam <thomas@xteddy.org>
Thu, 14 Nov 2024 16:16:05 +0000 (14 16:16 +0000)
tree5f9e4bd58939172ab0583e52622fd9b7c8fe1243
parent060e4bc5aff897f77640114eac72635dcd4e4f67
plug memory leaks in 'got fetch' and 'got send'

In addition to the previous commit [c450903bc2] that plugged fetch and
send leaks, free what would be the path entry's path member, which is
leaked when attempting to add a duplicate. And in the fetch case, free
refname and id when got_pathlist_insert() returns err.

ok stsp@
include/got_error.h
lib/error.c
lib/fetch.c
lib/send.c