Fix possible memory leak in allocmat()
commit6e5922f072086dfeab8f16bd639d1944c4aafb7a
authorStathis Kamperis <ekamperi@auth.gr>
Mon, 30 Jul 2007 09:56:45 +0000 (30 12:56 +0300)
committerStathis Kamperis <ekamperi@auth.gr>
Mon, 30 Jul 2007 09:56:45 +0000 (30 12:56 +0300)
tree3a4bab9171ddd644ac9d8614228e94f4e38248f3
parent70eab54181d99cf166f237df5e733fa22797e673
Fix possible memory leak in allocmat()
Every time a successful call to malloc() is made,
we increment a variable mdepth. If malloc() then fails,
we know exaclty how may deallocations we must perform.
pthreads/matrixmul.c