DO NOT MERGE - fix: memory leak
free momory for str_parms to prevent memory leak.
cherry-pcik from aosp c357157e28
Bug: 18798194.
Change-Id: I7df5567d665554dbd4646c881f0f48b0c568c5fe
This commit is contained in:
parent
4b280b0cd0
commit
781bb3f72e
1 changed files with 2 additions and 0 deletions
|
@ -1026,6 +1026,8 @@ static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs)
|
|||
}
|
||||
}
|
||||
|
||||
str_parms_destroy(parms);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue