@@ -456,6 +456,7 @@ int make_http_soap_request(zval *this_ptr,
456
456
}
457
457
add_soap_fault (this_ptr , "HTTP" , "Unable to parse URL" , NULL , NULL );
458
458
smart_str_free (& soap_headers_z );
459
+ efree (http_msg );
459
460
return FALSE;
460
461
}
461
462
@@ -469,6 +470,7 @@ int make_http_soap_request(zval *this_ptr,
469
470
}
470
471
add_soap_fault (this_ptr , "HTTP" , "Unknown protocol. Only http and https are allowed." , NULL , NULL );
471
472
smart_str_free (& soap_headers_z );
473
+ efree (http_msg );
472
474
return FALSE;
473
475
}
474
476
@@ -482,6 +484,7 @@ int make_http_soap_request(zval *this_ptr,
482
484
add_soap_fault (this_ptr , "HTTP" , "SSL support is not available in this build" , NULL , NULL );
483
485
PG (allow_url_fopen ) = old_allow_url_fopen ;
484
486
smart_str_free (& soap_headers_z );
487
+ efree (http_msg );
485
488
return FALSE;
486
489
}
487
490
@@ -536,6 +539,7 @@ int make_http_soap_request(zval *this_ptr,
536
539
add_soap_fault (this_ptr , "HTTP" , "Could not connect to host" , NULL , NULL );
537
540
PG (allow_url_fopen ) = old_allow_url_fopen ;
538
541
smart_str_free (& soap_headers_z );
542
+ efree (http_msg );
539
543
return FALSE;
540
544
}
541
545
}
@@ -687,6 +691,7 @@ int make_http_soap_request(zval *this_ptr,
687
691
convert_to_null (Z_CLIENT_USE_PROXY_P (this_ptr ));
688
692
smart_str_free (& soap_headers_z );
689
693
smart_str_free (& soap_headers );
694
+ efree (http_msg );
690
695
return FALSE;
691
696
}
692
697
@@ -904,12 +909,14 @@ int make_http_soap_request(zval *this_ptr,
904
909
convert_to_null (Z_CLIENT_USE_PROXY_P (this_ptr ));
905
910
add_soap_fault (this_ptr , "HTTP" , "Failed Sending HTTP SOAP request" , NULL , NULL );
906
911
smart_str_free (& soap_headers_z );
912
+ efree (http_msg );
907
913
return FALSE;
908
914
}
909
915
smart_str_free (& soap_headers );
910
916
} else {
911
917
add_soap_fault (this_ptr , "HTTP" , "Failed to create stream??" , NULL , NULL );
912
918
smart_str_free (& soap_headers_z );
919
+ efree (http_msg );
913
920
return FALSE;
914
921
}
915
922
@@ -926,6 +933,7 @@ int make_http_soap_request(zval *this_ptr,
926
933
convert_to_null (Z_CLIENT_USE_PROXY_P (this_ptr ));
927
934
add_soap_fault (this_ptr , "HTTP" , "Error Fetching http headers" , NULL , NULL );
928
935
smart_str_free (& soap_headers_z );
936
+ efree (http_msg );
929
937
return FALSE;
930
938
}
931
939
@@ -1173,6 +1181,7 @@ int make_http_soap_request(zval *this_ptr,
1173
1181
if (-- redirect_max < 1 ) {
1174
1182
add_soap_fault (this_ptr , "HTTP" , "Redirection limit reached, aborting" , NULL , NULL );
1175
1183
smart_str_free (& soap_headers_z );
1184
+ efree (http_msg );
1176
1185
return FALSE;
1177
1186
}
1178
1187
0 commit comments