Skip to content

Commit 73d3eb0

Browse files
rt-app.c: Fix cpuset_str leak
Free cpuset_str in __shutdown.
1 parent 9632cc9 commit 73d3eb0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rt-app.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,9 @@ static void __shutdown(bool force_terminate)
742742
if (threads[i].data->def_cpu_data.cpuset)
743743
CPU_FREE(threads[i].data->def_cpu_data.cpuset);
744744

745+
if (threads[i].data->def_cpu_data.cpuset_str)
746+
free(threads[i].data->def_cpu_data.cpuset_str);
747+
745748
free(threads[i].data);
746749
}
747750

0 commit comments

Comments
 (0)