Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 67c8808a authored by hhakim's avatar hhakim
Browse files

Fix memory leak in Faust::MatSparse::randMat().

Add missing delete for dense source matrix.
parent 39ab8abb
No related branches found
No related tags found
No related merge requests found
......@@ -735,6 +735,7 @@ Faust::MatSparse<FPP, Cpu>* Faust::MatSparse<FPP, Cpu>::randMat(unsigned int num
fsmat->update_dim();
// fsmat->Display();
// fsmat->mat.setFromTriplets(tripletList.begin(), tripletList.end());
delete dense;
return fsmat;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment