add coverity comment to supress 'deadcode' error

This commit is contained in:
Oliver Kurth 2021-01-11 16:14:36 -08:00
parent 4837ac8ecc
commit 2b339a500c
2 changed files with 2 additions and 5 deletions

View File

@ -848,11 +848,6 @@ TDNFDownloadFile(
if (is_metalink && ml_file)
{
if(fp)
{
fclose(fp);
fp = NULL;
}
dwError = TDNFParseAndGetURLFromMetalink(pTdnf, pszRepo, pszFile, ml_file);
BAIL_ON_TDNF_ERROR(dwError);
}
@ -862,6 +857,7 @@ cleanup:
TDNF_SAFE_FREE_MEMORY(pszFileTmp);
if(fp)
{
/* coverity[dead_error_line] */
fclose(fp);
}
if(pCurl)

View File

@ -219,6 +219,7 @@ error:
*/
if(pRepo)
{
/* coverity[dead_error_line] */
repo_free(pRepo, 1);
}
goto cleanup;