Blame rpm-4.9.0-rpmts-noref.patch
|
Panu Matilainen |
5a40a0 |
commit 077d2c850cf0a719d7abacc3256168d60a4ec7bb
|
|
Panu Matilainen |
5a40a0 |
Author: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
5a40a0 |
Date: Tue Apr 5 17:33:12 2011 +0300
|
|
Panu Matilainen |
5a40a0 |
|
|
Panu Matilainen |
5a40a0 |
Dont reference transaction set from transaction elements
|
|
Panu Matilainen |
5a40a0 |
- Elements referencing ts prevents rpmtsFree() from freeing anything
|
|
Panu Matilainen |
5a40a0 |
unless the caller does rpmtsEmpty() first. Oops. Undo the braindamage
|
|
Panu Matilainen |
5a40a0 |
from commit 8f7c2d7063df6d1057425d014ce4168d46c5e7d9.
|
|
Panu Matilainen |
5a40a0 |
|
|
Panu Matilainen |
5a40a0 |
diff --git a/lib/rpmte.c b/lib/rpmte.c
|
|
Panu Matilainen |
5a40a0 |
index 860b3f4..dfd7b6f 100644
|
|
Panu Matilainen |
5a40a0 |
--- a/lib/rpmte.c
|
|
Panu Matilainen |
5a40a0 |
+++ b/lib/rpmte.c
|
|
Panu Matilainen |
5a40a0 |
@@ -291,7 +291,6 @@ rpmte rpmteFree(rpmte te)
|
|
Panu Matilainen |
5a40a0 |
rpmfsFree(te->fs);
|
|
Panu Matilainen |
5a40a0 |
rpmpsFree(te->probs);
|
|
Panu Matilainen |
5a40a0 |
rpmteCleanDS(te);
|
|
Panu Matilainen |
5a40a0 |
- rpmtsFree(te->ts);
|
|
Panu Matilainen |
5a40a0 |
|
|
Panu Matilainen |
5a40a0 |
argvFree(te->collections);
|
|
Panu Matilainen |
5a40a0 |
argvFree(te->lastInCollectionsAny);
|
|
Panu Matilainen |
5a40a0 |
@@ -308,7 +307,7 @@ rpmte rpmteNew(rpmts ts, Header h, rpmElementType type, fnpyKey key,
|
|
Panu Matilainen |
5a40a0 |
rpmRelocation * relocs)
|
|
Panu Matilainen |
5a40a0 |
{
|
|
Panu Matilainen |
5a40a0 |
rpmte p = xcalloc(1, sizeof(*p));
|
|
Panu Matilainen |
5a40a0 |
- p->ts = rpmtsLink(ts);
|
|
Panu Matilainen |
5a40a0 |
+ p->ts = ts;
|
|
Panu Matilainen |
5a40a0 |
p->type = type;
|
|
Panu Matilainen |
5a40a0 |
addTE(p, h, key, relocs);
|
|
Panu Matilainen |
5a40a0 |
switch (type) {
|