Skip to content

Commit

Permalink
Merge pull request iovisor#1799 from iovisor/yhs_dev
Browse files Browse the repository at this point in the history
fix a memory leak for getline()
  • Loading branch information
4ast authored Jun 6, 2018
2 parents 8587ee0 + 3c5686d commit db5fa47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cc/libbpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,7 @@ static int bpf_detach_probe(const char *ev_name, const char *event_type)
found_event = 1;
break;
}
free(cptr);
fclose(fp);
fp = NULL;

Expand Down

0 comments on commit db5fa47

Please sign in to comment.