Skip to contentSkip to conversation

graph: cluster_add() loses the array when realloc fails

DPDK/other Bug 2110 [email protected] 1 participant 1 message Nov 12

lore
Share & tools
lore
#0 lore raw

https://bugs.dpdk.org/show_bug.cgi?id=2110

            Bug ID: 2110
           Summary: graph: cluster_add() loses the array when realloc
                    fails
           Product: DPDK
           Version: 26.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: other
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

lib/graph/graph_stats.c:354 does cluster->graphs = realloc(cluster->graphs, sz). On failure the old block is leaked and the pointer is NULL.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.