Stick constfree to extension cache cleanup
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 18 Dec 2007 08:46:39 +0000 (10:46 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 18 Dec 2007 08:46:39 +0000 (10:46 +0200)
- deal with the header mess later on

rpmdb/header.c

index 9a9457b..09f7c03 100644 (file)
@@ -3017,7 +3017,7 @@ rpmecFree(const headerSprintfExtension exts, rpmec ec)
     for (ext = exts; ext != NULL && ext->type != HEADER_EXT_LAST;
        ext = (ext->type == HEADER_EXT_MORE ? ext->u.more : ext+1))
     {
-       if (ec[i].freeit) ec[i].data = _free(ec[i].data);
+       if (ec[i].freeit) ec[i].data = _constfree(ec[i].data);
        i++;
     }