projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07adc4e
)
Dont leak memory from rpm.dsSingle()
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 22 Sep 2009 16:55:34 +0000
(19:55 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Tue, 22 Sep 2009 16:55:34 +0000
(19:55 +0300)
python/rpmds-py.c
patch
|
blob
|
history
diff --git
a/python/rpmds-py.c
b/python/rpmds-py.c
index
a9df231
..
05250a1
100644
(file)
--- 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) );
}