From 3e52b2be66a4b26e4f017895364ce44ee5e51cde Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 3 Feb 2016 22:25:21 -0800 Subject: [PATCH] Fix valgrind compile --- vvp/codes.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vvp/codes.cc b/vvp/codes.cc index 7f08077f9..bb8bc8b27 100644 --- a/vvp/codes.cc +++ b/vvp/codes.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001-2012 Stephen Williams (steve@icarus.com) + * Copyright (c) 2001-2016 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -113,7 +113,8 @@ void codespace_delete(void) count_opcodes -= 1; if ((cur+idx)->opcode == &of_VPI_CALL) { vpi_call_delete((cur+idx)->handle); - } else if ((cur+idx)->opcode == &of_EXEC_UFUNC) { + } else if (((cur+idx)->opcode == &of_EXEC_UFUNC_REAL) || + ((cur+idx)->opcode == &of_EXEC_UFUNC_VEC4)) { exec_ufunc_delete((cur+idx)); } else if ((cur+idx)->opcode == &of_FILE_LINE) { delete((cur+idx)->handle);