Memory Leak: File descriptor not closed. 92/199692/1 accepted/tizen/unified/20190215.055127 submit/tizen/20190215.032435
authorINSUN PYO <insun.pyo@samsung.com>
Thu, 14 Feb 2019 05:39:48 +0000 (14:39 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Thu, 14 Feb 2019 05:42:27 +0000 (14:42 +0900)
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

index 35dceb1..6fe13a5 100644 (file)
--- 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);