ACK: [PATCH 04/10] lib: fwts_ac_adapter: fix memory leak
IvanHu
ivan.hu at canonical.com
Tue May 6 03:07:41 UTC 2014
On 05/01/2014 10:01 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Coverity Scan detected a memory leak on data from fwts_get(),
> so free this.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/lib/src/fwts_ac_adapter.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/lib/src/fwts_ac_adapter.c b/src/lib/src/fwts_ac_adapter.c
> index 31ccddf..a50b49b 100644
> --- a/src/lib/src/fwts_ac_adapter.c
> +++ b/src/lib/src/fwts_ac_adapter.c
> @@ -111,6 +111,7 @@ int fwts_ac_adapter_get_state(const int state, int *matching, int *not_matching)
> switch (state) {
> case FWTS_AC_ADAPTER_ANY:
> (*matching)++;
> + free(data);
> continue;
> case FWTS_AC_ADAPTER_ONLINE:
> state_text = ac_interface->online;
>
Acked-by: Ivan Hu <ivan.hu at canonical.com>
More information about the fwts-devel
mailing list