station: fix NAI realms leak

After the known network refactor this string list was no longer set
into the network object. Now it should be freed in all cases after
the search.
This commit is contained in:
James Prestwood 2019-09-11 11:45:56 -07:00 committed by Denis Kenzior
parent bab9a4b6f2
commit d2162a7491
1 changed files with 2 additions and 0 deletions

View File

@ -478,6 +478,8 @@ static void station_anqp_response_cb(enum anqp_result result,
known_networks_foreach(match_nai_realms, &search);
l_strv_free(realms);
request_done:
l_queue_remove(station->anqp_pending, entry);