summaryrefslogtreecommitdiff
path: root/srcpos.c
diff options
context:
space:
mode:
author Jean-Christophe Dubois <jcd@tribudubois.net> 2017-02-07 22:26:25 +0100
committer David Gibson <david@gibson.dropbear.id.au> 2017-02-08 17:37:21 +1100
commit95d57726bca42fdedf63178a46a15599c02b60cc (patch)
tree6ea2bfde019f062cbc5d4922740c02d790eff4c6 /srcpos.c
parent3b9c97093d6e1067f4d24d2bff32f3dd24e0751e (diff)
livetree.c: Fix memory leak
When running coverity on dtc source code the following error is reported. ========================================================================== *** CID 1370967: Resource leaks (RESOURCE_LEAK) /tools/dtc/livetree.c: 850 in add_fixup_entry() 844 if (strchr(node->fullpath, ':') || strchr(prop->name, ':')) 845 die("arguments should not contain ':'\n"); 846 847 xasprintf(&entry, "%s:%s:%u", 848 node->fullpath, prop->name, m->offset); 849 append_to_property(fn, m->ref, entry, strlen(entry) + 1); >>> CID 1370967: Resource leaks (RESOURCE_LEAK) >>> Variable "entry" going out of scope leaks the storage it points to. 850 } ========================================================================== Fix the leak. Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'srcpos.c')
0 files changed, 0 insertions, 0 deletions