aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorManivannan Sadhasivam <[email protected]>2021-01-04 09:41:37 +0530
committerMiquel Raynal <[email protected]>2021-02-01 18:58:38 +0100
commit7b844cf445f0a7daa68be0ce71eb2c88d68b0c5d (patch)
treef91d0aab0f6e432c195653b7fd2be2a0dd70e0c5 /tools/perf/util/scripting-engines/trace-event-python.c
parent12ba8f8ce29fdd277f3100052eddc1afd2f5ea3f (diff)
mtd: parsers: afs: Fix freeing the part name memory in failure
In the case of failure while parsing the partitions, the iterator should be pre decremented by one before starting to free the memory allocated by kstrdup(). Because in the failure case, kstrdup() will not succeed and thus no memory will be allocated for the current iteration. Fixes: 1fca1f6abb38 ("mtd: afs: simplify partition parsing") Signed-off-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Cc: Linus Walleij <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions