[PATCH] acpi: s3: free quirks

Keng-Yu Lin kengyu at canonical.com
Mon May 20 07:42:42 UTC 2013


On Tue, May 7, 2013 at 5:56 PM, Colin King <colin.king at canonical.com> wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Coverity CID #997264, Resource leak.
>
> Need to free quirks
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/acpi/s3/s3.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/acpi/s3/s3.c b/src/acpi/s3/s3.c
> index ae89423..ad1f564 100644
> --- a/src/acpi/s3/s3.c
> +++ b/src/acpi/s3/s3.c
> @@ -99,6 +99,7 @@ static int s3_do_suspend_resume(fwts_framework *fw,
>                         free(quirks);
>                         return FWTS_OUT_OF_MEMORY;
>                 }
> +               free(quirks);
>         }
>
>         fwts_wakealarm_trigger(fw, delay);
> --
> 1.8.1.2
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>



More information about the fwts-devel mailing list