summaryrefslogtreecommitdiffstats
path: root/sys/libkern
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-05-21 02:41:15 +0000
committerkevlo <kevlo@FreeBSD.org>2012-05-21 02:41:15 +0000
commitd5c0b2755274d13729c64c84476155db6a6c6be7 (patch)
tree997cf522f2542d284c7bee166719bbd8fdb3de62 /sys/libkern
parentc50e4642a98f93c6d63ed6e3af62b00b1960dc38 (diff)
downloadFreeBSD-src-d5c0b2755274d13729c64c84476155db6a6c6be7.zip
FreeBSD-src-d5c0b2755274d13729c64c84476155db6a6c6be7.tar.gz
Fix broken ref count
Submitted by: gcooper
Diffstat (limited to 'sys/libkern')
-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