summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/libkern/iconv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/libkern/iconv.c b/sys/libkern/iconv.c
index e03d8ca..ed928f0 100644
--- a/sys/libkern/iconv.c
+++ b/sys/libkern/iconv.c
@@ -133,6 +133,7 @@ iconv_register_converter(struct iconv_converter_class *dcp)
static int
iconv_unregister_converter(struct iconv_converter_class *dcp)
{
+ dcp->refs--;
if (dcp->refs > 1) {
ICDEBUG("converter have %d referenses left\n", dcp->refs);
return EBUSY;
OpenPOWER on IntegriCloud