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:
parent
b3b51120e0
commit
21fc207d4c
1 changed files with 6 additions and 0 deletions
|
@ -1707,6 +1707,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;
|
||||
|
@ -1735,6 +1737,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;
|
||||
|
@ -1763,6 +1767,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue