diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 21:01:01 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-22 21:01:01 +0300 |
commit | 4d6f8e46e03ccb81a0f50848e974884b7874912d (patch) | |
tree | 774a2a309168cbedd820482b4a9e6678772cb0ab /python | |
parent | 0cb5de3fc090cae426b812ad3e38e2be8b7e63ac (diff) | |
download | librpm-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.c | 2 |
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; |