[ovs-git] [openvswitch/ovs] 5657f6: ovs-thread: Fix memory leak in thread exit.

GitHub noreply at github.com
Tue Nov 10 22:12:05 UTC 2015

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 5657f6863655fcd0c27b73cdfea07b8d49b5d8a5
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2015-11-10 (Tue, 10 Nov 2015)

  Changed paths:
    M lib/ovs-thread.c

  Log Message:
  ovs-thread: Fix memory leak in thread exit.

'n' is the number of keys, which are grouped into blocks of L2_SIZE
indexes.  Even if only one key in a block is allocated, the whole block has
a pointer to it that must be freed.  Thus, we need to round up instead of

Reported-at: https://github.com/openvswitch/ovs/pull/87
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Jarno Rajahalme <jrajahalme at nicira.com>

More information about the git mailing list