diff --git a/compiler2/xpather.cc b/compiler2/xpather.cc
index e1f411a1096a343194cb4cd2295005e14646dedc..282158ed6c412b02a7c0986293b4a2b2289fbe4b 100644
--- a/compiler2/xpather.cc
+++ b/compiler2/xpather.cc
@@ -1913,7 +1913,6 @@ static tpd_result process_tpd_internal(const char *p_tpd_name, char *tpdName, co
           if(abs_dir_path != NULL && !drop){
             files.add(cpath, ruri); // relativeURI to the TPD location
           }else {
-            cpath.destroy();
             result = TPD_FAILED;
           }
           { // set the *preprocess value if .ttcnpp file was found