Skip to content

Commit

Permalink
Fix memory leaks in error paths.
Browse files Browse the repository at this point in the history
Found by Fortify.

Signed-off-by: yinpeijun <yinpeijun@huawei.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
  • Loading branch information
yinpeijun authored and blp committed Aug 27, 2014
1 parent 7dbd04a commit e167286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/nx-match.c
Expand Up @@ -109,6 +109,7 @@ check_mask_consistency(const uint8_t *p, const struct mf_field *mf)
"bits wildcarded by the mask. (Future versions "
"of OVS may report this as an OpenFlow error.)",
s);
free(s);
break;
}
}
Expand Down
1 change: 1 addition & 0 deletions ovsdb/execution.c
Expand Up @@ -659,6 +659,7 @@ ovsdb_execute_wait(struct ovsdb_execution *x, struct ovsdb_parser *parser,
error = ovsdb_row_from_json(row, rows->u.array.elems[i], x->symtab,
NULL);
if (error) {
ovsdb_row_destroy(row);
break;
}

Expand Down

0 comments on commit e167286

Please sign in to comment.