summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsoon1.choi <soon1.choi@lge.com>2014-12-18 16:03:43 +0900
committerDave Kessler <activethrasher00@gmail.com>2015-03-03 12:36:42 -0500
commit57bf7957e819e91df8896d2b586265d461df72b0 (patch)
treeb2eaee37de45981d7c1ecfa404d0ae7da4d9d263
parenta0652a78e2ee00e4230f49a8759069992d2ae63a (diff)
downloadandroid_hardware_libhardware-cm-12.0.tar.gz
android_hardware_libhardware-cm-12.0.tar.bz2
android_hardware_libhardware-cm-12.0.zip
free momory for str_parms to prevent memory leak. Change-Id: I7df5567d665554dbd4646c881f0f48b0c568c5fe
-rw-r--r--modules/usbaudio/audio_hw.c2
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;
}