2
0
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:
Justin Pettit
2011-02-21 16:38:39 -08:00
parent 76f1c218bd
commit 08871bf6f0

View File

@@ -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;
}