mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
Fix two memory leaks.
Found by coverity. Signed-off-by: yinpeijun <yinpeijun@huawei.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -1196,6 +1196,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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user