summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cstore/cstore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cstore/cstore.cpp b/src/cstore/cstore.cpp
index b9f68a2..4f19ebf 100644
--- a/src/cstore/cstore.cpp
+++ b/src/cstore/cstore.cpp
@@ -2901,7 +2901,7 @@ Cstore::validate_val(const tr1::shared_ptr<Ctemplate>& def, const char *value)
#if __GNUC__ < 6
auto_ptr<char> vbuf(strdup(value));
#else
- unique_ptr<char> vbuf(strdup(value));
+ unique_ptr<char, decltype(&std::free)> vbuf { strdup(value), &std::free };
#endif
/* set the handle to be used during validate_value() for var ref