diff options
author | kevlo <kevlo@FreeBSD.org> | 2012-05-21 02:41:15 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2012-05-21 02:41:15 +0000 |
commit | d5c0b2755274d13729c64c84476155db6a6c6be7 (patch) | |
tree | 997cf522f2542d284c7bee166719bbd8fdb3de62 /sys/libkern/iconv.c | |
parent | c50e4642a98f93c6d63ed6e3af62b00b1960dc38 (diff) | |
download | FreeBSD-src-d5c0b2755274d13729c64c84476155db6a6c6be7.zip FreeBSD-src-d5c0b2755274d13729c64c84476155db6a6c6be7.tar.gz |
Fix broken ref count
Submitted by: gcooper
Diffstat (limited to 'sys/libkern/iconv.c')
-rw-r--r-- | sys/libkern/iconv.c | 1 |
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; |