Commit 324ad05e authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

block_kalman_filter: fix memory leak

parent 3f2e29f7
......@@ -805,6 +805,9 @@ mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
if (nlhs == 3)
plhs[2] = plik;
else
mxDestroyArray(plik);
mxFree(w);
#ifdef DIRECT
/*mxDestroyArray(nze);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment