From c7485d7adebfdc44401e9f0a1c77e1562e27443f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=98yvind=20Karlsen?= Date: Fri, 29 Feb 2008 21:27:02 +0000 Subject: try improve on freeing up memory --- rpm5compat.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'rpm5compat.h') 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; } -- cgit v1.2.1