summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-22 21:01:01 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-22 21:01:01 +0300
commit4d6f8e46e03ccb81a0f50848e974884b7874912d (patch)
tree774a2a309168cbedd820482b4a9e6678772cb0ab /python
parent0cb5de3fc090cae426b812ad3e38e2be8b7e63ac (diff)
downloadlibrpm-tizen-4d6f8e46e03ccb81a0f50848e974884b7874912d.tar.gz
librpm-tizen-4d6f8e46e03ccb81a0f50848e974884b7874912d.tar.bz2
librpm-tizen-4d6f8e46e03ccb81a0f50848e974884b7874912d.zip
Dont leak memory on rpm.ds iteration
Diffstat (limited to 'python')
-rw-r--r--python/rpmds-py.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c
index 67af3fb02..4a55c7238 100644
--- a/python/rpmds-py.c
+++ b/python/rpmds-py.c
@@ -217,8 +217,6 @@ rpmds_iternext(rpmdsObject * s)
rpmTag tagN = rpmdsTagN(s->ds);
rpmsenseFlags Flags = rpmdsFlags(s->ds);
- if (N != NULL) N = xstrdup(N);
- if (EVR != NULL) EVR = xstrdup(EVR);
result = (PyObject *) rpmds_Wrap( rpmdsSingle(tagN, N, EVR, Flags) );
} else
s->active = 0;