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:
parent
9bd019bd22
commit
e527d6ebd8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue