teknoraver / rpms / rpm

Forked from rpms/rpm 4 months ago
Clone

Blame rpm-4.10.90-caps-free.patch

Panu Matilainen 2d4d8e
commit 34df9d81d15b596ea6f3f3f2e15bd0ec55323a19
Panu Matilainen 2d4d8e
Author: Panu Matilainen <pmatilai@redhat.com>
Panu Matilainen 2d4d8e
Date:   Sat Nov 17 17:57:59 2012 +0200
Panu Matilainen 2d4d8e
Panu Matilainen 2d4d8e
    Fix double-free on %caps in spec (RhBug:877512)
Panu Matilainen 2d4d8e
    
Panu Matilainen 2d4d8e
    - Fixes regression caused by dumb refactoring mistake in commit
Panu Matilainen 2d4d8e
      807ba93a6cf168410e3801347898949f356fcd6c
Panu Matilainen 2d4d8e
Panu Matilainen 2d4d8e
diff --git a/build/files.c b/build/files.c
Panu Matilainen 2d4d8e
index d299cb9..10d7fff 100644
Panu Matilainen 2d4d8e
--- a/build/files.c
Panu Matilainen 2d4d8e
+++ b/build/files.c
Panu Matilainen 2d4d8e
@@ -216,7 +216,6 @@ static void FileEntryFree(FileEntry entry)
Panu Matilainen 2d4d8e
 {
Panu Matilainen 2d4d8e
     freeAttrRec(&(entry->ar));
Panu Matilainen 2d4d8e
     argvFree(entry->langs);
Panu Matilainen 2d4d8e
-    free(entry->caps);
Panu Matilainen 2d4d8e
     memset(entry, 0, sizeof(*entry));
Panu Matilainen 2d4d8e
 }
Panu Matilainen 2d4d8e