@@ -461,6 +461,7 @@ int make_http_soap_request(zval *this_ptr,
461
461
}
462
462
add_soap_fault (this_ptr , "HTTP" , "Unable to parse URL" , NULL , NULL );
463
463
smart_str_free (& soap_headers_z );
464
+ efree (http_msg );
464
465
return FALSE;
465
466
}
466
467
@@ -474,6 +475,7 @@ int make_http_soap_request(zval *this_ptr,
474
475
}
475
476
add_soap_fault (this_ptr , "HTTP" , "Unknown protocol. Only http and https are allowed." , NULL , NULL );
476
477
smart_str_free (& soap_headers_z );
478
+ efree (http_msg );
477
479
return FALSE;
478
480
}
479
481
@@ -487,6 +489,7 @@ int make_http_soap_request(zval *this_ptr,
487
489
add_soap_fault (this_ptr , "HTTP" , "SSL support is not available in this build" , NULL , NULL );
488
490
PG (allow_url_fopen ) = old_allow_url_fopen ;
489
491
smart_str_free (& soap_headers_z );
492
+ efree (http_msg );
490
493
return FALSE;
491
494
}
492
495
@@ -541,6 +544,7 @@ int make_http_soap_request(zval *this_ptr,
541
544
add_soap_fault (this_ptr , "HTTP" , "Could not connect to host" , NULL , NULL );
542
545
PG (allow_url_fopen ) = old_allow_url_fopen ;
543
546
smart_str_free (& soap_headers_z );
547
+ efree (http_msg );
544
548
return FALSE;
545
549
}
546
550
}
@@ -684,6 +688,7 @@ int make_http_soap_request(zval *this_ptr,
684
688
convert_to_null (Z_CLIENT_USE_PROXY_P (this_ptr ));
685
689
smart_str_free (& soap_headers_z );
686
690
smart_str_free (& soap_headers );
691
+ efree (http_msg );
687
692
return FALSE;
688
693
}
689
694
@@ -901,12 +906,14 @@ int make_http_soap_request(zval *this_ptr,
901
906
convert_to_null (Z_CLIENT_USE_PROXY_P (this_ptr ));
902
907
add_soap_fault (this_ptr , "HTTP" , "Failed Sending HTTP SOAP request" , NULL , NULL );
903
908
smart_str_free (& soap_headers_z );
909
+ efree (http_msg );
904
910
return FALSE;
905
911
}
906
912
smart_str_free (& soap_headers );
907
913
} else {
908
914
add_soap_fault (this_ptr , "HTTP" , "Failed to create stream??" , NULL , NULL );
909
915
smart_str_free (& soap_headers_z );
916
+ efree (http_msg );
910
917
return FALSE;
911
918
}
912
919
@@ -915,6 +922,7 @@ int make_http_soap_request(zval *this_ptr,
915
922
convert_to_null (Z_CLIENT_HTTPSOCKET_P (this_ptr ));
916
923
convert_to_null (Z_CLIENT_USE_PROXY_P (this_ptr ));
917
924
smart_str_free (& soap_headers_z );
925
+ efree (http_msg );
918
926
return TRUE;
919
927
}
920
928
@@ -929,6 +937,7 @@ int make_http_soap_request(zval *this_ptr,
929
937
convert_to_null (Z_CLIENT_USE_PROXY_P (this_ptr ));
930
938
add_soap_fault (this_ptr , "HTTP" , "Error Fetching http headers" , NULL , NULL );
931
939
smart_str_free (& soap_headers_z );
940
+ efree (http_msg );
932
941
return FALSE;
933
942
}
934
943
@@ -1157,6 +1166,7 @@ int make_http_soap_request(zval *this_ptr,
1157
1166
if (-- redirect_max < 1 ) {
1158
1167
add_soap_fault (this_ptr , "HTTP" , "Redirection limit reached, aborting" , NULL , NULL );
1159
1168
smart_str_free (& soap_headers_z );
1169
+ efree (http_msg );
1160
1170
return FALSE;
1161
1171
}
1162
1172
0 commit comments