Signed-off-by: Daniel Wagner <daniel.wagner@xxxxxxxxxxx> --- src/sched_deadline/cyclicdeadline.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c index 095e6ccc166f..e3cc3c74ef68 100644 --- a/src/sched_deadline/cyclicdeadline.c +++ b/src/sched_deadline/cyclicdeadline.c @@ -1271,6 +1271,10 @@ int main (int argc, char **argv) } } - free(setcpu_buf); + if (setcpu_buf) + free(setcpu_buf); + free(thread); + free(sched_data); + return 0; } -- 2.20.1