File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ static int custom_subtransport__action(
144
144
git_remote_connect_options_dispose (& opts );
145
145
146
146
* out = git__calloc (1 , sizeof (git_smart_subtransport_stream ));
147
+ GIT_ERROR_CHECK_ALLOC (* out );
147
148
(* out )-> subtransport = transport ;
148
149
(* out )-> read = custom_subtransport_stream__read ;
149
150
(* out )-> write = custom_subtransport_stream__write ;
@@ -169,6 +170,7 @@ static void custom_subtransport__free(git_smart_subtransport *transport)
169
170
static int custom_transport_callback (git_smart_subtransport * * out , git_transport * owner , void * param )
170
171
{
171
172
struct custom_subtransport * subtransport = git__calloc (1 , sizeof (struct custom_subtransport ));
173
+ GIT_ERROR_CHECK_ALLOC (subtransport );
172
174
subtransport -> called = (int * )param ;
173
175
subtransport -> owner = owner ;
174
176
subtransport -> subtransport .action = custom_subtransport__action ;
You can’t perform that action at this time.
0 commit comments