Commit db5fa477 authored by 4ast's avatar 4ast Committed by GitHub

Merge pull request #1799 from iovisor/yhs_dev

fix a memory leak for getline()
parents 8587ee00 3c5686d7
...@@ -1014,6 +1014,7 @@ static int bpf_detach_probe(const char *ev_name, const char *event_type) ...@@ -1014,6 +1014,7 @@ static int bpf_detach_probe(const char *ev_name, const char *event_type)
found_event = 1; found_event = 1;
break; break;
} }
free(cptr);
fclose(fp); fclose(fp);
fp = NULL; fp = NULL;
......
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