diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-11-02 21:50:09 +0100 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2017-11-02 21:50:09 +0100 |
commit | 451d65660b62aa23e9d3083174153e9a5a068c5f (patch) | |
tree | a3c7d5764cff67e2be4e175f1bccd6292e0f618b /alsa-binding/Alsa-Ucm.c | |
parent | e3e66b496be0c4abe4fa74569691ea2fb2624b86 (diff) |
Fix FD leaking on Alsa Control
Diffstat (limited to 'alsa-binding/Alsa-Ucm.c')
-rw-r--r-- | alsa-binding/Alsa-Ucm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alsa-binding/Alsa-Ucm.c b/alsa-binding/Alsa-Ucm.c index 0bfffc9..d608e61 100644 --- a/alsa-binding/Alsa-Ucm.c +++ b/alsa-binding/Alsa-Ucm.c @@ -52,7 +52,7 @@ static ucmHandleT ucmHandles[MAX_SND_CARD]; // Cache opened UCM handles STATIC int alsaUseCaseOpen(struct afb_req request, queryValuesT *queryValues, int allowNewMgr) { - snd_ctl_t *ctlDev; + snd_ctl_t *ctlDev=NULL; snd_ctl_card_info_t *cardinfo; snd_use_case_mgr_t *ucmHandle; const char *cardName; |