projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76f1c21
)
socket-util: Free strings in make_sockaddr_un() error handling.
author
Justin Pettit
<jpettit@nicira.com>
Tue, 22 Feb 2011 00:38:39 +0000
(16:38 -0800)
committer
Justin Pettit
<jpettit@nicira.com>
Tue, 22 Feb 2011 17:40:01 +0000
(09:40 -0800)
Coverity #10721,10720
lib/socket-util.c
patch
|
blob
|
history
diff --git
a/lib/socket-util.c
b/lib/socket-util.c
index 469131d4cf4ff8ae294281a1eb46aeb12ef2c606..275bf309a3564826cdf1834c5ff6e426325fb761 100644
(file)
--- 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;
}