Eliminate dead NULL-assignments on OFI frees on spec parsing
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 27 May 2011 11:35:14 +0000 (14:35 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 27 May 2011 12:24:57 +0000 (15:24 +0300)
build/parseSpec.c

index 9c114bb..8f2ef67 100644 (file)
@@ -262,8 +262,8 @@ retry:
            /* remove this file from the stack */
            spec->fileStack = ofi->next;
            fclose(ofi->fp);
-           ofi->fileName = _free(ofi->fileName);
-           ofi = _free(ofi);
+           free(ofi->fileName);
+           free(ofi);
 
            /* only on last file do we signal EOF to caller */
            ofi = spec->fileStack;
@@ -414,8 +414,8 @@ void closeSpec(rpmSpec spec)
        ofi = spec->fileStack;
        spec->fileStack = spec->fileStack->next;
        if (ofi->fp) (void) fclose(ofi->fp);
-       ofi->fileName = _free(ofi->fileName);
-       ofi = _free(ofi);
+       free(ofi->fileName);
+       free(ofi);
     }
 }