[lxc-devel] [lxc/lxc] f80950: tests: fix a memory leak in cgpath

Christian Brauner noreply at github.com
Tue Apr 13 15:21:05 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: f80950eeefd6e8e133bdf21c4f10fb110f5b3de2
      https://github.com/lxc/lxc/commit/f80950eeefd6e8e133bdf21c4f10fb110f5b3de2
  Author: Evgeny Vereshchagin <evvers at ya.ru>
  Date:   2021-04-10 (Sat, 10 Apr 2021)

  Changed paths:
    M src/tests/cgpath.c

  Log Message:
  -----------
  tests: fix a memory leak in cgpath

```
==131188==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 568 byte(s) in 1 object(s) allocated from:
    #0 0x7f8918943bc8 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
    #1 0x7f89181ee5a3 in lxc_container_new /home/vagrant/lxc/src/lxc/lxccontainer.c:5264
    #2 0x55ffc5022869 in test_container /home/vagrant/lxc/src/tests/cgpath.c:176
    #3 0x55ffc5023023 in main /home/vagrant/lxc/src/tests/cgpath.c:233
    #4 0x7f891709e0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
```

Signed-off-by: Evgeny Vereshchagin <evvers at ya.ru>


  Commit: c4142ec2a0ccffcfa6e78c01e8b60cf3848e1244
      https://github.com/lxc/lxc/commit/c4142ec2a0ccffcfa6e78c01e8b60cf3848e1244
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2021-04-13 (Tue, 13 Apr 2021)

  Changed paths:
    M src/tests/cgpath.c

  Log Message:
  -----------
  Merge pull request #3783 from evverx/cgpath-memleak2

tests: fix a memory leak in cgpath


Compare: https://github.com/lxc/lxc/compare/ca52b7ff13c8...c4142ec2a0cc


More information about the lxc-devel mailing list