Skip to content

Commit

Permalink
fix: memory leak
Browse files Browse the repository at this point in the history
free momory for str_parms to prevent memory leak.

Change-Id: I7df5567d665554dbd4646c881f0f48b0c568c5fe
  • Loading branch information
soon1 authored and Chairshot215 committed Jan 12, 2015
1 parent 4f1bd05 commit 9ede7f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/usbaudio/audio_hw.c
Expand Up @@ -1037,6 +1037,8 @@ static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs)
}
}

str_parms_destroy(parms);

return 0;
}

Expand Down

0 comments on commit 9ede7f7

Please sign in to comment.