Remove unused datafree handling from formatValue()
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 19 May 2008 05:38:53 +0000 (08:38 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 21 May 2008 09:04:50 +0000 (12:04 +0300)
- the data is always cached and cleared elsewhere..

lib/headerfmt.c

index e6bba1b..98fdab1 100644 (file)
@@ -662,7 +662,6 @@ static char * formatValue(headerSprintfArgs hsa, sprintfTag tag, int element)
     rpm_data_t data;
     unsigned int intVal;
     const char ** strarray;
-    int datafree = 0;
     int countBuf;
 
     memset(buf, 0, sizeof(buf));
@@ -766,9 +765,6 @@ static char * formatValue(headerSprintfArgs hsa, sprintfTag tag, int element)
        break;
     }
 
-    if (datafree)
-       data = headerFreeData(data, type);
-
     if (val && need > 0) {
        t = hsaReserve(hsa, need);
        te = stpcpy(t, val);