Skip to content

Commit

Permalink
netdev: Avoid leaking seq in netdev_open() error path.
Browse files Browse the repository at this point in the history
Signed-off-by: Huanle Han <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
hanxueluo authored and blp committed Sep 20, 2016
1 parent 814aac2 commit 1388f0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ netdev_open(const char *name, const char *type, struct netdev **netdevp)
netdev_change_seq_changed(netdev);
} else {
ovs_refcount_unref(&rc->refcnt);
seq_destroy(netdev->reconfigure_seq);
free(netdev->name);
ovs_assert(ovs_list_is_empty(&netdev->saved_flags_list));
shash_delete(&netdev_shash, netdev->node);
Expand Down

0 comments on commit 1388f0b

Please sign in to comment.