Message ID | 20190517192956.18372-2-john@phrozen.org (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Johannes Berg |
Headers | show |
Series | iw: various bug fixes | expand |
diff --git a/mgmt.c b/mgmt.c index 60f544b..88fe3fd 100644 --- a/mgmt.c +++ b/mgmt.c @@ -69,9 +69,11 @@ static int register_mgmt_frame(struct nl80211_state *state, NLA_PUT_U16(msg, NL80211_ATTR_FRAME_TYPE, type); NLA_PUT(msg, NL80211_ATTR_FRAME_MATCH, match_len, match); + free(match); return 0; nla_put_failure: + free(match); return -ENOBUFS; }
Signed-off-by: John Crispin <john@phrozen.org> --- mgmt.c | 2 ++ 1 file changed, 2 insertions(+)