diff --git a/src/drivers/rfkill.c b/src/drivers/rfkill.c index 464cf7834..4d4d1b448 100644 --- a/src/drivers/rfkill.c +++ b/src/drivers/rfkill.c @@ -185,6 +185,7 @@ struct rfkill_data * rfkill_init(struct rfkill_config *cfg) if (!found) goto fail2; + free(phy); eloop_register_read_sock(rfkill->fd, rfkill_receive, rfkill, NULL); return rfkill;