Fixed the path to cuda
Freed d_a, d_b, d_c