[ovs-git] Open vSwitch: dpif: Only clear 'all_dps' argument in dp_enumerate(). (master)

nicira-dev at nicira.com nicira-dev at nicira.com
Fri Aug 7 18:35:23 UTC 2009

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  d2a345699f3951029941d01c7f1bf008d706ad20 (commit)
      from  5146acb1408da035504163af23b2a554ff479800 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d2a345699f3951029941d01c7f1bf008d706ad20
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=d2a345699f3951029941d01c7f1bf008d706ad20
Author: Justin Pettit <jpettit at nicira.com>
dpif: Only clear 'all_dps' argument in dp_enumerate().
Originally, the function dp_enumerate() initialized the 'all_dps'
argument.  This is inconsistent with most other functions that take an
svec argument, which would only clear the contents.  Further, if someone
were not careful when reusing the svec, it could lead to memory leaks.
With this change, the caller is expected to first call svec_init() on
the argument.


Summary of changes:
 lib/dpif.c        |    8 ++++----
 vswitchd/bridge.c |    1 +
 2 files changed, 5 insertions(+), 4 deletions(-)

Open vSwitch

More information about the git mailing list