Skip to content

Commit

Permalink
cgroup: fix memory leak in GetCGroupMemoryUsage (#48911)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmds authored Mar 1, 2021
1 parent 99741fc commit 0c2a880
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/coreclr/gc/unix/cgroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ class CGroup
}
}

free(mem_usage_filename);
return result;
}

Expand Down
1 change: 1 addition & 0 deletions src/coreclr/pal/src/misc/cgroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ class CGroup
}
}

free(mem_usage_filename);
return result;
}

Expand Down

0 comments on commit 0c2a880

Please sign in to comment.