fix codeCheck Signed-off-by:baozewei@huawei.com

Signed-off-by: b30052170 <baozewei@huawei.com>
This commit is contained in:
b30052170 2024-09-12 19:59:33 +08:00
parent 10ba8b4c5a
commit bb9fd1ae77

View File

@ -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;
}