[ovs-git] [ovn-org/ovn] 2ff3e7: ovn-nbctl: Fix memory leak when parsing LR policy ...

Dumitru Ceara noreply at github.com
Wed Nov 25 08:29:08 UTC 2020


  Branch: refs/heads/branch-20.09
  Home:   https://github.com/ovn-org/ovn
  Commit: 2ff3e77f2a419164dee04351c38eedaeebe37d8a
      https://github.com/ovn-org/ovn/commit/2ff3e77f2a419164dee04351c38eedaeebe37d8a
  Author: Dumitru Ceara <dceara at redhat.com>
  Date:   2020-11-25 (Wed, 25 Nov 2020)

  Changed paths:
    M utilities/ovn-nbctl.c

  Log Message:
  -----------
  ovn-nbctl: Fix memory leak when parsing LR policy options.

Fixes: 742474bad730 ("ovn-nbctl: Enhance lr-policy-add to set the options.")
Signed-off-by: Dumitru Ceara <dceara at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>

(cherry-picked from master commit 1447f1d405a812fa363b2ed52a64fae15a0f66cf)


  Commit: a7c847139c710671f0e232d5d12a45d729de9d0c
      https://github.com/ovn-org/ovn/commit/a7c847139c710671f0e232d5d12a45d729de9d0c
  Author: Dumitru Ceara <dceara at redhat.com>
  Date:   2020-11-25 (Wed, 25 Nov 2020)

  Changed paths:
    M utilities/ovn-nbctl.c

  Log Message:
  -----------
  ovn-nbctl: Cleanup allocated memory to keep valgrind happy.

Fixes: 58287c369bed ("ovn-nbctl: Initial support for daemon mode.")
Signed-off-by: Dumitru Ceara <dceara at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>

(cherry-picked from master commit 8fb54e16378c1b130d2e0e84bea6e0b80521cae3)


  Commit: be83762a4785893aafddb02f0519417aea7fc0db
      https://github.com/ovn-org/ovn/commit/be83762a4785893aafddb02f0519417aea7fc0db
  Author: Dumitru Ceara <dceara at redhat.com>
  Date:   2020-11-25 (Wed, 25 Nov 2020)

  Changed paths:
    M utilities/ovn-nbctl.c
    M utilities/ovn-sbctl.c

  Log Message:
  -----------
  utilities: Free argv returned by ovs_cmdl_env_parse_all().

This is not a real leak but it's reported by valgrind as such and creates
noise in the output.

Signed-off-by: Dumitru Ceara <dceara at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>

(cherry-picked from master commit 2a076386cd526d116d970f74ca63810541bef4de)


Compare: https://github.com/ovn-org/ovn/compare/c4a04895d36f...be83762a4785


More information about the git mailing list