block_kalman_filter: fix memory leak

time-shift
Sébastien Villemot 2011-09-23 18:22:00 +02:00
parent 3f2e29f7bf
commit 324ad05ec1
1 changed files with 3 additions and 0 deletions

View File

@ -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);