Browse Source

[Pal] Fix memory leak of struct link_map in DkDebugAttachBinary()

Isaku Yamahata 4 years ago
parent
commit
882961c3f7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Pal/src/db_rtld.c

+ 1 - 0
Pal/src/db_rtld.c

@@ -1251,6 +1251,7 @@ void DkDebugAttachBinary (PAL_STR uri, PAL_PTR start_addr)
         }
 
     _DkDebugAddMap(l);
+    free(l);
 #endif
 }