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:
4e4a7a2
)
Don't bother zeroing rpmte twice on free
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 26 Nov 2008 06:58:35 +0000
(08:58 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 26 Nov 2008 06:58:35 +0000
(08:58 +0200)
- delTE() already zeroes it out
lib/rpmte.c
patch
|
blob
|
history
diff --git
a/lib/rpmte.c
b/lib/rpmte.c
index
a1091a2
..
ef1a4be
100644
(file)
--- a/
lib/rpmte.c
+++ b/
lib/rpmte.c
@@
-162,7
+162,6
@@
rpmte rpmteFree(rpmte te)
{
if (te != NULL) {
delTE(te);
- memset(te, 0, sizeof(*te)); /* XXX trash and burn */
te = _free(te);
}
return NULL;