summaryrefslogtreecommitdiffstats
path: root/lib/libcasper
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2014-01-03 09:10:04 +0000
committerpjd <pjd@FreeBSD.org>2014-01-03 09:10:04 +0000
commit57bae4afb4b675cf4ee2c93f43362d721e76015c (patch)
tree5901640c9eed762203de1e8685fd06af2723787f /lib/libcasper
parentedb2f6bf1320ec6c580739607fafaf0df5a8c7f9 (diff)
downloadFreeBSD-src-57bae4afb4b675cf4ee2c93f43362d721e76015c.zip
FreeBSD-src-57bae4afb4b675cf4ee2c93f43362d721e76015c.tar.gz
MFp4 @1189741:
- Add missing nvlist_destroy(). - Don't override nvlout. Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> MFC after: 3 days
Diffstat (limited to 'lib/libcasper')
-rw-r--r--lib/libcasper/libcasper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcasper/libcasper.c b/lib/libcasper/libcasper.c
index b279c46..b989cac 100644
--- a/lib/libcasper/libcasper.c
+++ b/lib/libcasper/libcasper.c
@@ -348,7 +348,6 @@ service_message(struct service *service, struct service_connection *sconn)
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, struct service_connection *sconn)
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
OpenPOWER on IntegriCloud