[lxc-devel] [lxc/lxc] 2716b4: fix memory leaks reported by cppcheck in src/lxc/l...

GitHub noreply at github.com
Wed Nov 20 15:58:02 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 2716b4877280dc984d40002fe47e9a40f15ccc0d
      https://github.com/lxc/lxc/commit/2716b4877280dc984d40002fe47e9a40f15ccc0d
  Author: S.Çağlar Onur <caglar at 10ur.org>
  Date:   2013-11-20 (Wed, 20 Nov 2013)

  Changed paths:
    M src/lxc/lxc_usernsexec.c

  Log Message:
  -----------
  fix memory leaks reported by cppcheck in src/lxc/lxc_usernsexec.c

Free previously allocated memory if realloc fails.

Signed-off-by: S.Çağlar Onur <caglar at 10ur.org>
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>





More information about the lxc-devel mailing list