1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-wifid: fix some leaks of wpas_message

This commit is contained in:
Derek Dai 2016-12-13 14:10:38 +08:00
parent b3b51120e0
commit 21fc207d4c
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -1707,6 +1707,8 @@ static int supplicant_status_fn(struct wpas *w,
NULL, NULL,
0, 0,
NULL); NULL);
wpas_message_unref(m);
m = NULL;
if (r < 0) { if (r < 0) {
log_vERR(r); log_vERR(r);
goto error; goto error;
@ -1735,6 +1737,8 @@ static int supplicant_status_fn(struct wpas *w,
s, s,
0, 0,
NULL); NULL);
wpas_message_unref(m);
m = NULL;
if (r < 0) { if (r < 0) {
log_vERR(r); log_vERR(r);
goto error; goto error;
@ -1763,6 +1767,8 @@ static int supplicant_status_fn(struct wpas *w,
s, s,
0, 0,
NULL); NULL);
wpas_message_unref(m);
m = NULL;
if (r < 0) { if (r < 0) {
log_vERR(r); log_vERR(r);
goto error; goto error;