Skip to content

Commit df00521

Browse files
glandiumgitster
authored andcommitted
transport.c::get_refs_via_curl(): do not leak refs_url
Signed-off-by: Mike Hommey <[email protected]> Signed-off-by: Tay Ray Chuan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4277c67 commit df00521

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

transport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ static struct ref *get_refs_via_curl(struct transport *transport, int for_push)
519519
free(ref);
520520
}
521521

522+
free(refs_url);
522523
return refs;
523524
}
524525

0 commit comments

Comments
 (0)