fixes, small improvements in functionality

This commit is contained in:
Vítor Santos Costa
2013-10-08 12:46:06 +01:00
parent 490b7cd40a
commit c757e51cb0
3 changed files with 20 additions and 6 deletions

View File

@@ -264,6 +264,7 @@ cuda_eval( void )
}
out = YAP_MkPairTerm(YAP_MkApplTerm( f, ncols, vec ), out);
}
free( mat );
return YAP_Unify(YAP_ARG2, out);
}
@@ -275,6 +276,7 @@ static int cuda_count( void )
if (n < 0)
return FALSE;
free( mat );
return YAP_Unify(YAP_ARG2, YAP_MkIntTerm(n));
}