@@ -324,7 +324,7 @@ static VALUE rb_git_remote_ls(int argc, VALUE *argv, VALUE self)
324
324
cleanup :
325
325
326
326
git_remote_disconnect (remote );
327
- git_strarray_free ( & custom_headers );
327
+ xfree ( custom_headers . strings );
328
328
329
329
if (payload .exception )
330
330
rb_jump_tag (payload .exception );
@@ -517,7 +517,7 @@ static VALUE rb_git_remote_check_connection(int argc, VALUE *argv, VALUE self)
517
517
error = git_remote_connect (remote , direction , & callbacks , NULL , & custom_headers );
518
518
git_remote_disconnect (remote );
519
519
520
- git_strarray_free ( & custom_headers );
520
+ xfree ( custom_headers . strings );
521
521
522
522
if (payload .exception )
523
523
rb_jump_tag (payload .exception );
@@ -617,7 +617,7 @@ static VALUE rb_git_remote_fetch(int argc, VALUE *argv, VALUE self)
617
617
error = git_remote_fetch (remote , & refspecs , & opts , log_message );
618
618
619
619
xfree (refspecs .strings );
620
- git_strarray_free ( & opts .custom_headers );
620
+ xfree ( opts .custom_headers . strings );
621
621
622
622
if (payload .exception )
623
623
rb_jump_tag (payload .exception );
@@ -692,7 +692,7 @@ static VALUE rb_git_remote_push(int argc, VALUE *argv, VALUE self)
692
692
error = git_remote_push (remote , & refspecs , & opts );
693
693
694
694
xfree (refspecs .strings );
695
- git_strarray_free ( & opts .custom_headers );
695
+ xfree ( opts .custom_headers . strings );
696
696
697
697
if (payload .exception )
698
698
rb_jump_tag (payload .exception );
0 commit comments