Message ID | 20220507150657.28240-2-i.kamaletdinov@omp.ru |
---|---|
State | New |
Headers | show |
Series | Fix few more bugs found by SVACE | expand |
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index e4d521583..2619285d5 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -80,7 +80,10 @@ 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)