stream-ssl: Fix unimportant memory leak.
authorBen Pfaff <blp@nicira.com>
Mon, 1 Feb 2010 22:35:37 +0000 (14:35 -0800)
committerBen 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

index e501b995da8edc77713e216f7cbe1eead07bc873..941f77914674abe2b1d21f646dc38c36173f9180 100644 (file)
@@ -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. */