From: VMware, Inc <> Date: Thu, 18 Nov 2010 22:33:49 +0000 (-0800) Subject: Address some issues identified by Coverity. X-Git-Tag: 2010.11.17-327185~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce84f0858ca8affd0f607cc27dfe3710c7aa2ae8;p=thirdparty%2Fopen-vm-tools.git Address some issues identified by Coverity. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/file/file.c b/open-vm-tools/lib/file/file.c index cc78ea76c..8b9269308 100644 --- a/open-vm-tools/lib/file/file.c +++ b/open-vm-tools/lib/file/file.c @@ -2799,7 +2799,7 @@ FileRotateByRenumber(const char *filePath, // IN: full path to file uint32 maxNr = 0; int i, nrFiles, nFound = 0; char **fileList = NULL; - uint32 *fileNumbers; + uint32 *fileNumbers = NULL; int result; fullPathNoExt = File_FullPath(filePathNoExt); @@ -2886,6 +2886,7 @@ FileRotateByRenumber(const char *filePath, // IN: full path to file } cleanup: + free(fileNumbers); free(fileList); free(fmtString); free(baseDir);