diff options
author | 2015-07-15 16:10:29 +0200 | |
---|---|---|
committer | 2015-07-16 21:38:59 +0100 | |
commit | 36a1f1b6ddc6d1442424e29548e790633ca39c7b (patch) | |
tree | 2b7bf7c9648986cfd7947d80e851a27dbdf7b247 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | regulator: core: Increase refcount for regulator supply's module (diff) | |
download | wireguard-linux-36a1f1b6ddc6d1442424e29548e790633ca39c7b.tar.xz wireguard-linux-36a1f1b6ddc6d1442424e29548e790633ca39c7b.zip |
regulator: core: Fix memory leak in regulator_resolve_supply()
The regulator_resolve_supply() function calls set_supply() which in turn
calls create_regulator() to allocate a supply regulator.
If an error occurs after set_supply() succeeded, the allocated regulator
has to be freed before propagating the error code.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions