From d2162a7491c0290ff1c1aea371aaea1194eb2954 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 11 Sep 2019 11:45:56 -0700 Subject: [PATCH] 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. --- src/station.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/station.c b/src/station.c index 1642be1c..88985b1d 100644 --- a/src/station.c +++ b/src/station.c @@ -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);