From: INSUN PYO Date: Thu, 14 Feb 2019 05:39:48 +0000 (+0900) Subject: Memory Leak: File descriptor not closed. X-Git-Tag: submit/tizen/20190215.032435^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F199692%2F1;p=sdk%2Ftarget%2Fsdbd.git 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 --- 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);