Teach (unused) headerFreeTag about RPM_FORCEFREE_TYPE
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 2 Jan 2008 13:02:18 +0000 (15:02 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 2 Jan 2008 13:02:18 +0000 (15:02 +0200)
rpmdb/header.c

index 17b8101..d1b757a 100644 (file)
@@ -1476,7 +1476,7 @@ static void * _headerFreeTag(Header h,
                rpm_data_t data, rpm_tagtype_t type)
 {
     if (data) {
-       if (type == -1 ||
+       if (type == RPM_FORCEFREE_TYPE ||
            type == RPM_STRING_ARRAY_TYPE ||
            type == RPM_I18NSTRING_TYPE ||
            type == RPM_BIN_TYPE)