diff options
author | soon1.choi <soon1.choi@lge.com> | 2014-12-18 16:03:43 +0900 |
---|---|---|
committer | soon1.choi <soon1.choi@lge.com> | 2014-12-18 16:03:43 +0900 |
commit | c357157e28dc0ffd069b80aeba9bf8b9eed72c9a (patch) | |
tree | 84a7b62c673a9b1f2deb593eeabe0568a600d26e /modules/usbaudio | |
parent | 719b8423102e469b5a537321f02011415b376dbe (diff) | |
download | hardware_libhardware-c357157e28dc0ffd069b80aeba9bf8b9eed72c9a.zip hardware_libhardware-c357157e28dc0ffd069b80aeba9bf8b9eed72c9a.tar.gz hardware_libhardware-c357157e28dc0ffd069b80aeba9bf8b9eed72c9a.tar.bz2 |
fix: memory leak
free momory for str_parms to prevent memory leak.
Change-Id: I7df5567d665554dbd4646c881f0f48b0c568c5fe
Diffstat (limited to 'modules/usbaudio')
-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 664a753..35f7705 100644 --- a/modules/usbaudio/audio_hw.c +++ b/modules/usbaudio/audio_hw.c @@ -1037,6 +1037,8 @@ static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs) } } + str_parms_destroy(parms); + return 0; } |