diff --git a/vhdlparser/vhdlstring.h b/vhdlparser/vhdlstring.h
index ec13907..1980cf5 100644
--- a/vhdlparser/vhdlstring.h
+++ b/vhdlparser/vhdlstring.h
@@ -49,7 +49,7 @@ class VhdlString
     }
    ~VhdlString()
     {
-      delete[] m_str;
+      free(m_str);
     }
     VhdlString& append(const char *s,int size)
     {
