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 committed by edurenye
parent b093e9eacb
commit 75a930b828

View file

@ -1723,6 +1723,8 @@ static int supplicant_status_fn(struct wpas *w,
NULL,
0,
NULL);
wpas_message_unref(m);
m = NULL;
if (r < 0) {
log_vERR(r);
goto error;
@ -1751,6 +1753,8 @@ static int supplicant_status_fn(struct wpas *w,
s,
0,
NULL);
wpas_message_unref(m);
m = NULL;
if (r < 0) {
log_vERR(r);
goto error;
@ -1779,6 +1783,8 @@ static int supplicant_status_fn(struct wpas *w,
s,
0,
NULL);
wpas_message_unref(m);
m = NULL;
if (r < 0) {
log_vERR(r);
goto error;