[ovs-git] [openvswitch/ovs] 3b6dda: ovs-thread: Fix memory leak in thread exit.

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


  Branch: refs/heads/branch-2.4
  Home:   https://github.com/openvswitch/ovs
  Commit: 3b6ddafea65015b36b38409a881787ba99b38332
      https://github.com/openvswitch/ovs/commit/3b6ddafea65015b36b38409a881787ba99b38332
  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