Message ID | 20220507170703.29902-2-i.kamaletdinov@omp.ru |
---|---|
State | Superseded |
Headers | show |
Series | Fix few more bugs found by SVACE | expand |
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index e4d521583..e1b73f22a 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -80,7 +80,11 @@ static void print_pkt_type(struct hci_dev_info *di) static void print_link_policy(struct hci_dev_info *di) { - printf("\tLink policy: %s\n", hci_lptostr(di->link_policy)); + char *str; + + str = hci_lptostr(di->link_policy); + printf("\tLink policy: %s\n", str); + bt_free(str); } static void print_link_mode(struct hci_dev_info *di)