[PATCH] acpi: s4: free quirks
Keng-Yu Lin
kengyu at canonical.com
Mon May 20 07:42:15 UTC 2013
On Tue, May 7, 2013 at 5:54 PM, Colin King <colin.king at canonical.com> wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> Coverity CID #997263: Resource leak
>
> Need to free quirks after use.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/acpi/s4/s4.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/acpi/s4/s4.c b/src/acpi/s4/s4.c
> index 59ffcaf..9f07bcf 100644
> --- a/src/acpi/s4/s4.c
> +++ b/src/acpi/s4/s4.c
> @@ -131,6 +131,7 @@ static int s4_hibernate(fwts_framework *fw,
> free(quirks);
> return FWTS_OUT_OF_MEMORY;
> }
> + free(quirks);
> }
>
> fwts_wakealarm_trigger(fw, s4_sleep_delay);
> --
> 1.8.1.2
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>>
More information about the fwts-devel
mailing list