Skip to content

Commit

Permalink
Fixed memory leak in TCP reporting via HEP
Browse files Browse the repository at this point in the history
Free the memory used by the reporting job after the reporting is done.
  • Loading branch information
bogdan-iancu committed Feb 5, 2018
1 parent ecea494 commit a71c679
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/net_tcp_report.c
Expand Up @@ -51,6 +51,8 @@ static void tcp_report_ipc_handler(int sender, void *payload)
/* run the report callback */
protos[job->proto].net.report( job->type, job->conn_id, job->conn_flags,
job->extra);
/* and free the job memory */
shm_free(job);
}


Expand Down

0 comments on commit a71c679

Please sign in to comment.