From abb80e0f95f43b3ca066d9f80f4fe060a87e3f80 Mon Sep 17 00:00:00 2001 From: SungHyun Kwon Date: Tue, 3 Mar 2015 13:56:42 +0900 Subject: [PATCH] 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(). --- adb/fdevent.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/adb/fdevent.cpp b/adb/fdevent.cpp index 45d33db03..eeb2a9c65 100644 --- a/adb/fdevent.cpp +++ b/adb/fdevent.cpp @@ -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)