Browse Source

[LibOS] Fix the storage of local_objects leaks in shim_async_helper

before DkThreadExit(), allocated resource local_objects were not freed, causing resource leakage of local_objects content

Signed-off-by: Gary <gang1.wang@intel.com>
Gary 5 years ago
parent
commit
54f767f7ba
1 changed files with 1 additions and 0 deletions
  1. 1 0
      LibOS/shim/src/shim_async.c

+ 1 - 0
LibOS/shim/src/shim_async.c

@@ -281,6 +281,7 @@ update_list:
     unlock(async_helper_lock);
     put_thread(self);
     debug("async helper thread terminated\n");
+    free(local_objects);
 
     DkThreadExit();
 }