Skip to content

Commit

Permalink
Fix file descriptor leak
Browse files Browse the repository at this point in the history
  • Loading branch information
pchaigno committed Feb 20, 2017
1 parent 0a34d1e commit 2919587
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cc/bcc_perf_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2919587

Please sign in to comment.