summaryrefslogtreecommitdiff
path: root/mask.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mask.cc')
-rw-r--r--mask.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/mask.cc b/mask.cc
index 33dcf93b..972b24ce 100644
--- a/mask.cc
+++ b/mask.cc
@@ -27,7 +27,8 @@ mask_t::mask_t(const std::string& pat) : exclude(false)
regexp = pcre_compile(pattern.c_str(), PCRE_CASELESS,
&error, &erroffset, NULL);
if (! regexp)
- throw mask_error(std::string("Failed to compile regexp '") + pattern + "'");
+ throw new mask_error(std::string("Failed to compile regexp '") +
+ pattern + "'");
}
mask_t::mask_t(const mask_t& m) : exclude(m.exclude), pattern(m.pattern)