From: Justin Pettit Date: Tue, 22 Feb 2011 00:38:39 +0000 (-0800) Subject: socket-util: Free strings in make_sockaddr_un() error handling. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08871bf6f0ac5dd8afc6a571b43e7948de4ac832;p=openvswitch socket-util: Free strings in make_sockaddr_un() error handling. Coverity #10721,10720 --- diff --git a/lib/socket-util.c b/lib/socket-util.c index 469131d4..275bf309 100644 --- a/lib/socket-util.c +++ b/lib/socket-util.c @@ -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; }