Commit 29195875 authored by Paul Chaignon's avatar Paul Chaignon

Fix file descriptor leak

parent 0a34d1e6
......@@ -44,6 +44,7 @@ int bcc_perf_map_nstgid(int pid) {
nstgid = (int)strtol(strrchr(line, '\t'), NULL, 10);
}
free(line);
fclose(status);
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