Blame rpm-4.4.2.2-pyproblem.patch
|
Panu Matilainen |
078fe1 |
changeset: 6193:cc2abc150d64
|
|
Panu Matilainen |
078fe1 |
tag: tip
|
|
Panu Matilainen |
078fe1 |
user: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
078fe1 |
date: Wed Oct 24 09:50:13 2007 +0300
|
|
Panu Matilainen |
078fe1 |
summary: Don't mess up problem pkgNEVR in python ts.check() (rhbz#349091)
|
|
Panu Matilainen |
078fe1 |
|
|
Panu Matilainen |
078fe1 |
diff -r 751cf2c7614e -r cc2abc150d64 python/rpmts-py.c
|
|
Panu Matilainen |
078fe1 |
--- a/python/rpmts-py.c Thu Oct 18 09:34:54 2007 +0300
|
|
Panu Matilainen |
078fe1 |
+++ b/python/rpmts-py.c Wed Oct 24 09:50:13 2007 +0300
|
|
Panu Matilainen |
078fe1 |
@@ -439,7 +439,7 @@ fprintf(stderr, "*** rpmts_Check(%p) ts
|
|
Panu Matilainen |
078fe1 |
if (p->type == RPMPROB_BADRELOCATE)
|
|
Panu Matilainen |
078fe1 |
continue;
|
|
Panu Matilainen |
078fe1 |
|
|
Panu Matilainen |
078fe1 |
- byName = p->pkgNEVR;
|
|
Panu Matilainen |
078fe1 |
+ byName = strdup(p->pkgNEVR);
|
|
Panu Matilainen |
078fe1 |
if ((byArch= strrchr(byName, '.')) != NULL)
|
|
Panu Matilainen |
078fe1 |
*byArch++ = '\0';
|
|
Panu Matilainen |
078fe1 |
if ((byRelease = strrchr(byName, '-')) != NULL)
|
|
Panu Matilainen |
078fe1 |
@@ -475,6 +475,7 @@ fprintf(stderr, "*** rpmts_Check(%p) ts
|
|
Panu Matilainen |
078fe1 |
#endif
|
|
Panu Matilainen |
078fe1 |
PyList_Append(list, (PyObject *) cf);
|
|
Panu Matilainen |
078fe1 |
Py_DECREF(cf);
|
|
Panu Matilainen |
078fe1 |
+ free(byName);
|
|
Panu Matilainen |
078fe1 |
}
|
|
Panu Matilainen |
078fe1 |
|
|
Panu Matilainen |
078fe1 |
ps = rpmpsFree(ps);
|
|
Panu Matilainen |
078fe1 |
|