HomeClusterLabs Projects

Medium: crm_resource: fix a memleak

Description

Medium: crm_resource: fix a memleak

$ ./BasicSanity.sh -v cli

[..]

  • Passed: cibadmin - Create a resource =#=#=#= Begin test: Create a resource meta attribute =#=#=#= Set 'dummy' option: id=dummy-meta_attributes-is-managed set=dummy-meta_attributes name=is-managed=false

+==00:00:00:01.966 1247== 11 bytes in 1 blocks are definitely lost in loss record 2 of 10
+==00:00:00:01.966 1247== at 0x4A08987: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
+==00:00:00:01.966 1247== by 0x403AA4: main (crm_resource.c:522)
+==00:00:00:01.966 1247==
[..]

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>

Details

Provenance
Jan Pokorný <jpokorny@redhat.com>Authored on Oct 1 2015, 12:15 PM
kgaillotCommitted on Sep 22 2017, 5:01 PM
Parents
rPc8b895eed1f2: Medium: pengine: sprintf -> snprintf
Branches
Unknown
Tags
Unknown

Event Timeline