deadline_test: Free allocated resources at exit

Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
Daniel Wagner 2019-03-12 18:17:12 +01:00 committed by John Kacur
parent 9bd019bd22
commit e527d6ebd8
1 changed files with 5 additions and 1 deletions

View File

@ -2092,8 +2092,12 @@ int main (int argc, char **argv)
printf("\n");
}
if (!setcpu_buf)
if (setcpu_buf)
free(setcpu_buf);
free(thread);
free(sched_data);
CPU_FREE(cpusetp);
return 0;
}