projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6fa444
)
stream-ssl: Fix unimportant memory leak.
author
Ben Pfaff
<blp@nicira.com>
Mon, 1 Feb 2010 22:35:37 +0000
(14:35 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 2 Feb 2010 23:21:09 +0000
(15:21 -0800)
This function is generally called only once per program execution, so
leaking a little bit of memory does not matter that much.
Found with valgrind.
lib/stream-ssl.c
patch
|
blob
|
history
diff --git
a/lib/stream-ssl.c
b/lib/stream-ssl.c
index e501b995da8edc77713e216f7cbe1eead07bc873..941f77914674abe2b1d21f646dc38c36173f9180 100644
(file)
--- a/
lib/stream-ssl.c
+++ b/
lib/stream-ssl.c
@@
-1074,6
+1074,7
@@
stream_ssl_set_ca_cert_file(const char *file_name, bool bootstrap)
}
X509_free(certs[i]);
}
+ free(certs);
/* Set up CAs for OpenSSL to trust in verifying the peer's
* certificate. */