Re: [RFC PATCH BlueZ RESEND 1/3] Add a btd_manager_get_default_adapter_str() call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/10/10 Antonio Ospite:

> +char *btd_manager_get_default_adapter_str(void)

> +       char *str = bt_malloc(18);
> +
> +       adapter = manager_get_default_adapter();
> +       if (adapter == NULL) {
> +               return NULL;

you are leaking str if you return here
-- 
Daniele Forsi
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux