Update wxwork_finance_sdk.c
fix 资源释放
This commit is contained in:
parent
6fd962b58d
commit
d6cef37802
@ -196,6 +196,7 @@ PHP_METHOD(WxworkFinanceSdk, downloadMedia)
|
||||
|
||||
if (0 != ret) {
|
||||
FreeMediaData(media_data);
|
||||
fclose(fp);
|
||||
zend_throw_exception(wxwork_finance_sdk_exception_ce, "GetMediaData error", ret);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user