mirror of https://github.com/vmware/tdnf.git
add coverity comment to supress 'deadcode' error
This commit is contained in:
parent
4837ac8ecc
commit
2b339a500c
|
@ -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)
|
||||
|
|
|
@ -219,6 +219,7 @@ error:
|
|||
*/
|
||||
if(pRepo)
|
||||
{
|
||||
/* coverity[dead_error_line] */
|
||||
repo_free(pRepo, 1);
|
||||
}
|
||||
goto cleanup;
|
||||
|
|
Loading…
Reference in New Issue