diff options
author | soon1.choi <soon1.choi@lge.com> | 2014-12-18 16:03:43 +0900 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-12-18 09:55:05 -0800 |
commit | 781bb3f72e2706f07ee8bcc0c140201faf07c35c (patch) | |
tree | 5f06f8f97964553440d7a7358da04961db26cd35 /modules | |
parent | 4b280b0cd07a380feb4653b911ddcb3a31e73797 (diff) | |
download | hardware_libhardware-781bb3f72e2706f07ee8bcc0c140201faf07c35c.zip hardware_libhardware-781bb3f72e2706f07ee8bcc0c140201faf07c35c.tar.gz hardware_libhardware-781bb3f72e2706f07ee8bcc0c140201faf07c35c.tar.bz2 |
DO NOT MERGE - fix: memory leak
free momory for str_parms to prevent memory leak.
cherry-pcik from aosp c357157e28dc0ffd069b80aeba9bf8b9eed72c9a
Bug: 18798194.
Change-Id: I7df5567d665554dbd4646c881f0f48b0c568c5fe
Diffstat (limited to 'modules')
-rw-r--r-- | modules/usbaudio/audio_hw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/usbaudio/audio_hw.c b/modules/usbaudio/audio_hw.c index 0346408..0ee44c5 100644 --- a/modules/usbaudio/audio_hw.c +++ b/modules/usbaudio/audio_hw.c @@ -1026,6 +1026,8 @@ static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) } } + str_parms_destroy(parms); + return 0; } |