From 4eb378315442d075725678ff6c3911b8064ddee6 Mon Sep 17 00:00:00 2001 From: INSUN PYO Date: Thu, 14 Feb 2019 14:39:48 +0900 Subject: [PATCH] Memory Leak: File descriptor not closed. All processes running in sdb are opening the following files: "/usr/share/aul/dotnet.debugger". sh-3.2# ls -al /proc/self/fd total 0 dr-x------ 2 root root 0 Feb 14 06:30 . dr-xr-xr-x 8 root root 0 Feb 14 06:30 .. lrwx------ 1 root root 64 Feb 14 06:30 0 -> /dev/pts/2 lrwx------ 1 root root 64 Feb 14 06:30 1 -> /dev/pts/2 lr-x------ 1 root root 64 Feb 14 06:30 13 -> /usr/share/aul/dotnet.debugger Change-Id: I8cf3393009448f9b825bfa9c076299ec19b05906 --- src/sdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sdb.c b/src/sdb.c index 35dceb1..6fe13a5 100644 --- a/src/sdb.c +++ b/src/sdb.c @@ -167,6 +167,7 @@ int is_netcoredbg_supported(void) { snprintf(g_capabilities.netcoredbg_support, sizeof(g_capabilities.netcoredbg_support), "%s", ENABLED); free(line); + fclose(fp); return 1; } free(line); -- 2.34.1