diff options
author | soon1.choi <soon1.choi@lge.com> | 2014-12-18 16:03:43 +0900 |
---|---|---|
committer | Dave Kessler <activethrasher00@gmail.com> | 2015-03-03 12:36:42 -0500 |
commit | 57bf7957e819e91df8896d2b586265d461df72b0 (patch) | |
tree | b2eaee37de45981d7c1ecfa404d0ae7da4d9d263 | |
parent | a0652a78e2ee00e4230f49a8759069992d2ae63a (diff) | |
download | android_hardware_libhardware-cm-12.0.tar.gz android_hardware_libhardware-cm-12.0.tar.bz2 android_hardware_libhardware-cm-12.0.zip |
fix: memory leakstable/cm-12.0-YNG4Nstable/cm-12.0-YNG3Cstable/cm-12.0-YNG1TAstable/cm-12.0-YNG1Tcm-12.0
free momory for str_parms to prevent memory leak.
Change-Id: I7df5567d665554dbd4646c881f0f48b0c568c5fe
-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 664a753a..35f77055 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; } |