Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abb80e0f authored by SungHyun Kwon's avatar SungHyun Kwon
Browse files

Fix memory leak on jdwp_process_free()

if many jdwp connection are created(), the memory will be leaked.

When it deletes heap memory on jdwp_process_free(),
the proc->fde just set to null.

so it need to free() in fdevent_destory().
parent fbb3f8ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -587,6 +587,7 @@ void fdevent_destroy(fdevent *fde)
        FATAL("fde %p not created by fdevent_create()\n", fde);
    }
    fdevent_remove(fde);
    free(fde);
}

void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg)