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:
Felix Fietkau 2025-06-28 21:20:44 +02:00
parent 14b686247a
commit 6e1d4afa86

View file

@ -1788,6 +1788,7 @@ void hostapd_ubus_free_bss(struct hostapd_data *hapd)
}
free(name);
obj->name = NULL;
}
static void