Fix descriptor leak.

This commit is contained in:
Pawel Jakub Dawidek 2014-02-09 21:47:46 +00:00
parent bf90d007d3
commit 5564ef953a

View File

@ -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 {