device: fix temporary_timer double free
authorArchie Pusaka <apusaka@chromium.org>
Tue, 20 Oct 2020 10:02:45 +0000 (18:02 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
commit11b6aad92d4a9c33570175db9208412b1dfa69e8
treef6952c7cc87835cd0f5b15b55d1e0eface7aa38b
parent9b47e87f99a38339bc86c9dde34f743c8d8f2dcd
device: fix temporary_timer double free

One instance of freeing temporary_timer is not followed by setting
the variable to 0, causing potential double free.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c