svn commit: r260223 - head/lib/libcasper
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Jan 3 09:10:05 UTC 2014
Author: pjd
Date: Fri Jan 3 09:10:04 2014
New Revision: 260223
URL: http://svnweb.freebsd.org/changeset/base/260223
Log:
MFp4 @1189741:
- Add missing nvlist_destroy().
- Don't override nvlout.
Submitted by: Mariusz Zaborski <oshogbo at FreeBSD.org>
MFC after: 3 days
Modified:
head/lib/libcasper/libcasper.c
Modified: head/lib/libcasper/libcasper.c
==============================================================================
--- head/lib/libcasper/libcasper.c Fri Jan 3 09:07:03 2014 (r260222)
+++ head/lib/libcasper/libcasper.c Fri Jan 3 09:10:04 2014 (r260223)
@@ -348,7 +348,6 @@ service_message(struct service *service,
error = 0;
}
} else {
- nvlout = nvlist_create(0);
error = service->s_command(cmd,
service_connection_get_limits(sconn), nvlin, nvlout);
}
@@ -362,8 +361,9 @@ service_message(struct service *service,
if (cap_send_nvlist(service_connection_get_chan(sconn), nvlout) == -1) {
pjdlog_errno(LOG_ERR, "Unable to send message to client");
service_connection_remove(service, sconn);
- return;
}
+
+ nvlist_destroy(nvlout);
}
static int
More information about the svn-src-all
mailing list