Fix memory leak 78/277378/1
authorJusung Son <jusung07.son@samsung.com>
Wed, 30 Oct 2019 06:09:41 +0000 (15:09 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Tue, 5 Jul 2022 07:44:33 +0000 (16:44 +0900)
Change-Id: I616a8ae3b5d382ade36acb6afd7bcbf053180aea
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
alarm-manager.c

index 48e7444a62f466fd0d7e0c4ac49c54f05e8cc72b..9145a37c081a3b71ce26e1314133f785c8233a9e 100644 (file)
@@ -4445,6 +4445,7 @@ static void __initialize_timer()
        gpollfd = (GPollFD *) g_malloc(sizeof(GPollFD));
        if (gpollfd == NULL) {
                ALARM_MGR_EXCEPTION_PRINT("Out of memory\n");
+               g_source_unref(src);
                exit(1);
        }
        gpollfd->events = POLLIN;