diff options
Diffstat (limited to 'rpm5compat.h')
-rw-r--r-- | rpm5compat.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/rpm5compat.h b/rpm5compat.h index bf2c927..fcdb327 100644 --- a/rpm5compat.h +++ b/rpm5compat.h @@ -115,13 +115,8 @@ static HeaderIterator headerInitIterator(Header h){ } void * headerFreeData(const void * data, rpmTagType type) { - if (data) { - if (type == -1 || - type == RPM_STRING_ARRAY_TYPE || - type == RPM_I18NSTRING_TYPE || - type == RPM_BIN_TYPE) - free((void *)data); - } + if (data) + free((void *)data); return NULL; } |