hostapd: fix potential double free in ubus code
Ensure that the object name is never freed twice Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
14b686247a
commit
6e1d4afa86
1 changed files with 1 additions and 0 deletions
|
@ -1788,6 +1788,7 @@ void hostapd_ubus_free_bss(struct hostapd_data *hapd)
|
|||
}
|
||||
|
||||
free(name);
|
||||
obj->name = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue