aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 21:27:02 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 21:27:02 +0000
commitc7485d7adebfdc44401e9f0a1c77e1562e27443f (patch)
tree149f96933d5d84c4ac6e5b446aee6a3dce263b1c
parent8f5d4c2948d5cb74842bbccf0c6a4f042297e6fa (diff)
downloadrpmtools-c7485d7adebfdc44401e9f0a1c77e1562e27443f.tar
rpmtools-c7485d7adebfdc44401e9f0a1c77e1562e27443f.tar.gz
rpmtools-c7485d7adebfdc44401e9f0a1c77e1562e27443f.tar.bz2
rpmtools-c7485d7adebfdc44401e9f0a1c77e1562e27443f.tar.xz
rpmtools-c7485d7adebfdc44401e9f0a1c77e1562e27443f.zip
try improve on freeing up memory
-rw-r--r--rpm5compat.h9
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;
}