Commit 203fd276 authored by 4ast's avatar 4ast Committed by GitHub

Merge pull request #989 from pchaigno/fix-fd-leak

Fix file descriptor leak
parents 0a34d1e6 29195875
...@@ -44,6 +44,7 @@ int bcc_perf_map_nstgid(int pid) { ...@@ -44,6 +44,7 @@ int bcc_perf_map_nstgid(int pid) {
nstgid = (int)strtol(strrchr(line, '\t'), NULL, 10); nstgid = (int)strtol(strrchr(line, '\t'), NULL, 10);
} }
free(line); free(line);
fclose(status);
return nstgid; return nstgid;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment