diff options
author | pjd <pjd@FreeBSD.org> | 2014-02-09 21:47:46 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2014-02-09 21:47:46 +0000 |
commit | 01fe85d1ed6939183498272d46f1657950cdb53e (patch) | |
tree | 8b12e16059865e4e02f731fb4875803edf857ca9 /lib | |
parent | 9fa72e7466012ab021ef8cc025c315e3807cc024 (diff) | |
download | FreeBSD-src-01fe85d1ed6939183498272d46f1657950cdb53e.zip FreeBSD-src-01fe85d1ed6939183498272d46f1657950cdb53e.tar.gz |
Fix descriptor leak.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcasper/libcasper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcasper/libcasper.c b/lib/libcasper/libcasper.c index b989cac..68d2832 100644 --- a/lib/libcasper/libcasper.c +++ b/lib/libcasper/libcasper.c @@ -344,7 +344,7 @@ service_message(struct service *service, struct service_connection *sconn) if (sock == -1) { error = errno; } else { - nvlist_add_descriptor(nvlout, "sock", sock); + nvlist_move_descriptor(nvlout, "sock", sock); error = 0; } } else { |