Skip to content

Commit

Permalink
cat: Fix potential memory leak
Browse files Browse the repository at this point in the history
This was introduced in aefe30c.
  • Loading branch information
oshogbo committed Jan 15, 2021
1 parent 4f48fd7 commit c664d8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/cat/cat.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ udom_open(const char *path, int flags)
}
if (caph_rights_limit(fd, &rights) < 0) {
close(fd);
freeaddrinfo(res0);
return (-1);
}
error = cap_connect(capnet, fd, res->ai_addr, res->ai_addrlen);
Expand Down

0 comments on commit c664d8d

Please sign in to comment.