mirror of
https://gitee.com/openharmony/print_print_fwk
synced 2024-11-27 02:50:40 +00:00
fix codeCheck Signed-off-by:baozewei@huawei.com
Signed-off-by: b30052170 <baozewei@huawei.com>
This commit is contained in:
parent
10ba8b4c5a
commit
bb9fd1ae77
@ -708,8 +708,7 @@ int32_t PrintCupsClient::QueryPrinterCapabilityFromPPD(const std::string &printe
|
||||
cups_dinfo_t *dinfo = printAbility_->CopyDestInfo(CUPS_HTTP_DEFAULT, dest);
|
||||
if (dinfo == nullptr) {
|
||||
PRINT_HILOGE("cupsCopyDestInfo failed");
|
||||
delete dest;
|
||||
dest = nullptr;
|
||||
cupsFreeDests(1, dest);
|
||||
return E_PRINT_SERVER_FAILURE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user