Prevent dereference before null check
This commit is contained in:
parent
77d0745f38
commit
a741dadf20
|
@ -711,6 +711,9 @@ static void fft_context_destroy(glfft_t *fft)
|
||||||
|
|
||||||
extern "C" void glfft_free(glfft_t *fft)
|
extern "C" void glfft_free(glfft_t *fft)
|
||||||
{
|
{
|
||||||
|
if (!fft)
|
||||||
|
return;
|
||||||
|
|
||||||
fft_context_destroy(fft);
|
fft_context_destroy(fft);
|
||||||
if (fft)
|
if (fft)
|
||||||
free(fft);
|
free(fft);
|
||||||
|
|
Loading…
Reference in New Issue