[cgmanager-devel] [cgmanager/cgmanager] 1027a7: dont try to close fd after an error

GitHub noreply at github.com
Mon Mar 24 15:59:24 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/cgmanager/cgmanager
  Commit: 1027a73fa17be18926e7fbaa5fc557d74943e8a9
      https://github.com/cgmanager/cgmanager/commit/1027a73fa17be18926e7fbaa5fc557d74943e8a9
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-03-24 (Mon, 24 Mar 2014)

  Changed paths:
    M frontend.c

  Log Message:
  -----------
  dont try to close fd after an error

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


  Commit: 42d486d2538dcd1eb04c490a3e09a9ee4d25ae47
      https://github.com/cgmanager/cgmanager/commit/42d486d2538dcd1eb04c490a3e09a9ee4d25ae47
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-03-24 (Mon, 24 Mar 2014)

  Changed paths:
    M access_checks.c
    M access_checks.h
    M frontend.c

  Log Message:
  -----------
  Don't leak memory when reading creds in callback

When we grab the creds from a nih_io message, the msg gets
reparented to the new parent we pass in - which was NULL.
So it did not get removed.  Reparent it to our sock data,
so it will get freed when we are done with the scm
transaction.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>


Compare: https://github.com/cgmanager/cgmanager/compare/f611c739d130...42d486d2538d


More information about the cgmanager-devel mailing list