summaryrefslogtreecommitdiff
path: root/src/locale/iconv_close.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale/iconv_close.c')
-rw-r--r--src/locale/iconv_close.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/locale/iconv_close.c b/src/locale/iconv_close.c
index fac681cc..28b29565 100644
--- a/src/locale/iconv_close.c
+++ b/src/locale/iconv_close.c
@@ -1,6 +1,8 @@
#include <iconv.h>
+#include <stdlib.h>
int iconv_close(iconv_t cd)
{
+ if (!((size_t)cd & 1)) free((void *)cd);
return 0;
}