Don't bother zeroing rpmte twice on free
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 26 Nov 2008 06:58:35 +0000 (08:58 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 26 Nov 2008 06:58:35 +0000 (08:58 +0200)
- delTE() already zeroes it out

lib/rpmte.c

index a1091a2..ef1a4be 100644 (file)
@@ -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;