From d5c0b2755274d13729c64c84476155db6a6c6be7 Mon Sep 17 00:00:00 2001 From: kevlo Date: Mon, 21 May 2012 02:41:15 +0000 Subject: [PATCH] Fix broken ref count Submitted by: gcooper --- sys/libkern/iconv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/libkern/iconv.c b/sys/libkern/iconv.c index e03d8ca05ea0..ed928f0f767d 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;