Skip to content

Commit

Permalink
Fix two memory leaks.
Browse files Browse the repository at this point in the history
Found by coverity.

Signed-off-by: yinpeijun <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
yinpeijun authored and blp committed Jul 28, 2014
1 parent abadfcb commit 0ded15d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ Wei Yongjun [email protected]
William Fulton
YAMAMOTO Takashi [email protected]
Yasuhito Takamiya [email protected]
yinpeijun [email protected]
Yu Zhiguo [email protected]
ZhengLingyun [email protected]
Zoltan Kiss [email protected]
Expand Down
1 change: 1 addition & 0 deletions lib/stream-ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
1 change: 1 addition & 0 deletions ovsdb/ovsdb-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,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;
}

Expand Down

0 comments on commit 0ded15d

Please sign in to comment.