rt-tests: deadline_test: Add NULL check before freeing setcpu_buf
setcpu_buf doesn't always call malloc, so NULL check it before freeing Signed-off-by: John Kacur <jkacur@redhat.com>
This commit is contained in:
parent
7ea837b01d
commit
ed58e7ad03
|
@ -2092,6 +2092,8 @@ int main (int argc, char **argv)
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!setcpu_buf)
|
||||||
free(setcpu_buf);
|
free(setcpu_buf);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue