[ovs-git] [openvswitch/ovs] 2f5fb3: ovs-thread: Fix memory leak in thread exit.

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


  Branch: refs/heads/branch-2.3
  Home:   https://github.com/openvswitch/ovs
  Commit: 2f5fb3a85a5339a23d42173282c8389c24d2d73d
      https://github.com/openvswitch/ovs/commit/2f5fb3a85a5339a23d42173282c8389c24d2d73d
  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
down.

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