Free host arrays at end of program
This commit is contained in:
parent
a9a087622d
commit
dcf734387e
@ -288,6 +288,11 @@ int main(int argc, char *argv[])
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Free host vectors
|
||||||
|
free(h_a);
|
||||||
|
free(h_b);
|
||||||
|
free(h_c);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string getDeviceName(int device)
|
std::string getDeviceName(int device)
|
||||||
|
|||||||
@ -313,6 +313,11 @@ int main(int argc, char *argv[])
|
|||||||
<< std::endl;
|
<< std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Free host vectors
|
||||||
|
free(h_a);
|
||||||
|
free(h_b);
|
||||||
|
free(h_c);
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (cl::Error &e)
|
catch (cl::Error &e)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user