Fix descriptor leak.
This commit is contained in:
parent
bf90d007d3
commit
5564ef953a
@ -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