aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2020-09-29 12:09:55 +0200
committerBartosz Golaszewski <[email protected]>2020-09-30 10:50:30 +0200
commit0fd16012adc0a994a7ce980a78e22e4de6220778 (patch)
treea61c43f7314e424e4814a91ed437c485ac031dc6 /scripts/gdb/linux/modules.py
parent3795d7cc4fe13200dae9fade93441b4d5f123b74 (diff)
lib: string_helpers: provide kfree_strarray()
There's a common pattern of dynamically allocating an array of char pointers and then also dynamically allocating each string in this array. Provide a helper for freeing such a string array with one call. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions