summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorAndrew Goodbody <[email protected]>2025-11-21 17:34:33 +0000
committerTom Rini <[email protected]>2025-12-05 17:03:31 -0600
commit33285945518731ed459680ffb01891c4804fb6c9 (patch)
treed48ec32aa3464926a8cb19ab082f5d4d4ea0ccd2 /scripts/basic
parentfe780310cfa8bf5a093894b5cd7fe85c6b02fd91 (diff)
clk: Prevent memory leak on error
In clk_set_default_rates() memory is allocated to store the clock rates that are read. Direct returns fail to free this memory leading to a memory leak so instead use 'goto fail;' which will then perform the free before exiting the function. Signed-off-by: Andrew Goodbody <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions