svn commit: r261693 - head/lib/libcasper

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Feb 9 21:47:47 UTC 2014


Author: pjd
Date: Sun Feb  9 21:47:46 2014
New Revision: 261693
URL: http://svnweb.freebsd.org/changeset/base/261693

Log:
  Fix descriptor leak.

Modified:
  head/lib/libcasper/libcasper.c

Modified: head/lib/libcasper/libcasper.c
==============================================================================
--- head/lib/libcasper/libcasper.c	Sun Feb  9 21:42:01 2014	(r261692)
+++ head/lib/libcasper/libcasper.c	Sun Feb  9 21:47:46 2014	(r261693)
@@ -344,7 +344,7 @@ service_message(struct service *service,
 		if (sock == -1) {
 			error = errno;
 		} else {
-			nvlist_add_descriptor(nvlout, "sock", sock);
+			nvlist_move_descriptor(nvlout, "sock", sock);
 			error = 0;
 		}
 	} else {


More information about the svn-src-all mailing list