File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -838,6 +838,7 @@ static void *Task_Ready;
838
838
HANDLE hErrorWrite = 0 , hErrorRead = 0 ;
839
839
REBCHR * cmd = NULL ;
840
840
char * oem_input = NULL ;
841
+ void * tmp ;
841
842
842
843
SECURITY_ATTRIBUTES sa ;
843
844
@@ -1121,8 +1122,9 @@ static void *Task_Ready;
1121
1122
* output_len += n ;
1122
1123
if (* output_len >= output_size ) {
1123
1124
output_size += BUF_SIZE_CHUNK ;
1124
- * output = realloc (* output , output_size );
1125
- if (* output == NULL ) goto kill ;
1125
+ tmp = realloc (* output , output_size );
1126
+ if (tmp == NULL ) goto kill ;
1127
+ * output = tmp ;
1126
1128
}
1127
1129
}
1128
1130
} else if (handles [i ] == hErrorRead ) {
@@ -1135,8 +1137,9 @@ static void *Task_Ready;
1135
1137
* err_len += n ;
1136
1138
if (* err_len >= err_size ) {
1137
1139
err_size += BUF_SIZE_CHUNK ;
1138
- * err = realloc (* err , err_size );
1139
- if (* err == NULL ) goto kill ;
1140
+ tmp = realloc (* err , err_size );
1141
+ if (tmp == NULL ) goto kill ;
1142
+ * err = tmp ;
1140
1143
}
1141
1144
}
1142
1145
} else {
You can’t perform that action at this time.
0 commit comments