From 4d537d3ab39ba741484c5739f177e44f57451cf6 Mon Sep 17 00:00:00 2001 From: Oliver Kurth Date: Mon, 2 May 2022 23:17:17 +0000 Subject: [PATCH] fix memory leak in TDNFReadConfFilesFromDir() --- client/config.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/config.c b/client/config.c index 13845ee2..5c042ace 100644 --- a/client/config.c +++ b/client/config.c @@ -533,8 +533,6 @@ TDNFReadConfFilesFromDir( { continue; } - dwError = TDNFAllocateStringPrintf(&pszFile, pszDir, pEnt->d_name); - BAIL_ON_TDNF_ERROR(dwError); dwError = TDNFJoinPath(&pszFile, pszDir, pEnt->d_name, NULL); BAIL_ON_TDNF_ERROR(dwError);