diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 19:55:34 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 19:55:34 +0300 |
commit | d7134660ca4300058e579bed990ab7cf7e14a40f (patch) | |
tree | 67f67570e892a768fd202243e52a959a2e0fb915 /python/rpmds-py.c | |
parent | 07adc4e0d1aa23a4d3e3a21e8f01f615233793ee (diff) | |
download | rpm-d7134660ca4300058e579bed990ab7cf7e14a40f.tar.gz |
Dont leak memory from rpm.dsSingle()
Diffstat (limited to 'python/rpmds-py.c')
-rw-r--r-- | python/rpmds-py.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c index a9df23143..05250a1a4 100644 --- a/python/rpmds-py.c +++ b/python/rpmds-py.c @@ -602,8 +602,6 @@ rpmds_Single(PyObject * s, PyObject * args, PyObject * kwds) tagN = tagNumFromPyObject(to); if (tagN == RPMTAG_NOT_FOUND) return NULL; } - if (N != NULL) N = xstrdup(N); - if (EVR != NULL) EVR = xstrdup(EVR); return rpmds_Wrap( rpmdsSingle(tagN, N, EVR, Flags) ); } |