rpmfi actions is already alloced by rpmfiNew(), don't leak memory
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 7 May 2008 05:32:36 +0000 (08:32 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 7 May 2008 05:32:36 +0000 (08:32 +0300)
build/files.c

index e7074dd..fad6720 100644 (file)
@@ -1204,7 +1204,6 @@ static void genCpioListAndHeader(FileList fl,
     a = (char *)(fi->apath + fi->fc);
     *a = '\0';
 
-    fi->actions = xcalloc(sizeof(*fi->actions), fi->fc);
     fi->fmapflags = xcalloc(sizeof(*fi->fmapflags), fi->fc);
     fi->astriplen = 0;
     if (fl->buildRoot)