Dont leak memory from rpm.dsSingle()
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 22 Sep 2009 16:55:34 +0000 (19:55 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 22 Sep 2009 16:55:34 +0000 (19:55 +0300)
python/rpmds-py.c

index a9df231..05250a1 100644 (file)
@@ -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) );
 }