make cnnclassify clear in valgrind