]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Address some issues identified by Coverity.
authorVMware, Inc <>
Thu, 18 Nov 2010 22:33:49 +0000 (14:33 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 18 Nov 2010 22:33:49 +0000 (14:33 -0800)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/file/file.c

index cc78ea76c5e8bf1af4bdc8311a2d4543998d2bce..8b92693083ae247fff51e08a634c54574934bbfa 100644 (file)
@@ -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);