mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
socket-util: Free strings in make_sockaddr_un() error handling.
Coverity #10721,10720
This commit is contained in:
@@ -270,6 +270,8 @@ make_sockaddr_un(const char *name, struct sockaddr_un *un, socklen_t *un_len,
|
||||
|
||||
dirfd = open(dir, O_DIRECTORY | O_RDONLY);
|
||||
if (dirfd < 0) {
|
||||
free(base);
|
||||
free(dir);
|
||||
return errno;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user