Fix descriptor leak.
This commit is contained in:
parent
bf90d007d3
commit
5564ef953a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=261693
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user