[ovs-dev] [PATCH 0/4] Fix memory leak in vconn-unix code.

Ben Pfaff blp at nicira.com
Mon Sep 21 21:53:53 UTC 2009


This memory leak is present in both the citrix and master branches, but
the proper fix is somewhat invasive and the leak is not so important, so
I am proposing this series of changes as a fix only for the master branch.

Fixes for more serious memory leaks have already been posted.

Ben Pfaff (4):
  vconn: Remove unused "reconnectable" member from vconn.
  fatal-signal: Clean up code by using shash.
  fatal-signal: New function fatal_signal_unlink_file_now().
  vconn-unix: Unlink Unix sockets for vconns at close and free memory.

 lib/fatal-signal.c   |   44 +++++++++++++++++++++++++++--------------
 lib/fatal-signal.h   |    3 +-
 lib/unixctl.c        |    6 +---
 lib/vconn-provider.h |    3 +-
 lib/vconn-ssl.c      |    2 +-
 lib/vconn-stream.c   |   52 ++++++++++++++++++++++++++++++++++++++++++++-----
 lib/vconn-stream.h   |    3 +-
 lib/vconn-tcp.c      |    4 +-
 lib/vconn-unix.c     |   14 +++++++-----
 lib/vconn.c          |   20 +++++++++++++++++-
 lib/vlog-modules.def |    1 +
 11 files changed, 112 insertions(+), 40 deletions(-)





More information about the dev mailing list