File tree 1 file changed +9
-9
lines changed 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -571,6 +571,8 @@ static void local_cancel(git_transport *transport)
571
571
static int local_close (git_transport * transport )
572
572
{
573
573
transport_local * t = (transport_local * )transport ;
574
+ size_t i ;
575
+ git_remote_head * head ;
574
576
575
577
t -> connected = 0 ;
576
578
@@ -584,25 +586,23 @@ static int local_close(git_transport *transport)
584
586
t -> url = NULL ;
585
587
}
586
588
589
+ git_vector_foreach (& t -> refs , i , head ) {
590
+ git__free (head -> name );
591
+ git__free (head );
592
+ }
593
+
594
+ git_vector_free (& t -> refs );
595
+
587
596
return 0 ;
588
597
}
589
598
590
599
static void local_free (git_transport * transport )
591
600
{
592
601
transport_local * t = (transport_local * )transport ;
593
- size_t i ;
594
- git_remote_head * head ;
595
602
596
603
/* Close the transport, if it's still open. */
597
604
local_close (transport );
598
605
599
- git_vector_foreach (& t -> refs , i , head ) {
600
- git__free (head -> name );
601
- git__free (head );
602
- }
603
-
604
- git_vector_free (& t -> refs );
605
-
606
606
/* Free the transport */
607
607
git__free (t );
608
608
}
You can’t perform that action at this time.
0 commit comments