Eliminate unused params member from pgpDigParams
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 7 Nov 2011 13:39:39 +0000 (15:39 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 7 Nov 2011 13:41:43 +0000 (15:41 +0200)
- Rpm has never used this for anything, amounting to helluva lot
  unnecessary free()'s over the years.

rpmio/digest.h
rpmio/rpmpgp.c

index 9a13902..afbb32e 100644 (file)
@@ -26,7 +26,6 @@ struct pgpDigAlg_s {
 struct pgpDigParams_s {
     char * userid;
     uint8_t * hash;
-    char * params[4];
     uint8_t tag;
 
     uint8_t version;           /*!< version number. */
index 976bbbf..d4cbd27 100644 (file)
@@ -854,9 +854,6 @@ static void pgpCleanDigParams(pgpDigParams digp)
        pgpDigAlgFree(digp->alg);
        free(digp->userid);
        free(digp->hash);
-       for (int i = 0; i < 4; i++) 
-           free(digp->params[i]);
-
        memset(digp, 0, sizeof(*digp));
     }
 }