svn commit: r235712 - head/sys/libkern

Kevin Lo kevlo at FreeBSD.org
Mon May 21 02:41:15 UTC 2012


Author: kevlo
Date: Mon May 21 02:41:15 2012
New Revision: 235712
URL: http://svn.freebsd.org/changeset/base/235712

Log:
  Fix broken ref count
  
  Submitted by:	gcooper

Modified:
  head/sys/libkern/iconv.c

Modified: head/sys/libkern/iconv.c
==============================================================================
--- head/sys/libkern/iconv.c	Mon May 21 02:30:22 2012	(r235711)
+++ head/sys/libkern/iconv.c	Mon May 21 02:41:15 2012	(r235712)
@@ -133,6 +133,7 @@ iconv_register_converter(struct iconv_co
 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;


More information about the svn-src-head mailing list