Skip to content

Commit

Permalink
rt-app.c: Fix cpuset_str leak
Browse files Browse the repository at this point in the history
Free cpuset_str in __shutdown.
  • Loading branch information
douglas-raillard-arm committed Dec 14, 2023
1 parent f2f861c commit 23e8ad7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rt-app.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,9 @@ static void __shutdown(bool force_terminate)
if (threads[i].data->def_cpu_data.cpuset)
CPU_FREE(threads[i].data->def_cpu_data.cpuset);

if (threads[i].data->def_cpu_data.cpuset_str)
free(threads[i].data->def_cpu_data.cpuset_str);

free(threads[i].data);
}

Expand Down

0 comments on commit 23e8ad7

Please sign in to comment.