From: yinpeijun <yinpei...@huawei.com> fix the the obviously memory leak in ovsdb-server.c and stream-ssl.c find by the tool of coverity.
Signed-off-by: yinpeijun <yinpei...@huawei.com> --- lib/stream-ssl.c | 1 + ovsdb/ovsdb-server.c | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/stream-ssl.c b/lib/stream-ssl.c index 9a214be..937134f 100644 --- a/lib/stream-ssl.c +++ b/lib/stream-ssl.c @@ -1213,6 +1213,7 @@ read_cert_file(const char *file_name, X509 ***certs, size_t *n_certs) free(*certs); *certs = NULL; *n_certs = 0; + fclose(file); return EIO; } diff --git a/ovsdb/ovsdb-server.c b/ovsdb/ovsdb-server.c index a85a672..d85c4e1 100644 --- a/ovsdb/ovsdb-server.c +++ b/ovsdb/ovsdb-server.c @@ -519,6 +519,7 @@ query_db_string(const struct shash *all_dbs, const char *name, &db, &table, &column); if (retval) { ds_put_format(errors, "%s\n", retval); + free(retval); return NULL; } _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev