diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2023-02-13 00:19:19 +0100 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2023-02-13 11:25:27 +0100 |
commit | 74e57cf02883a9e1c34df3fd17d3293e98c1fae9 (patch) | |
tree | f1b82f93760f807984facf6dc2d019b2ce74f91f /src/cstore | |
parent | 6333455c29dd191d8220794b74e8dfe9fa382604 (diff) | |
download | vyatta-cfg-74e57cf02883a9e1c34df3fd17d3293e98c1fae9.tar.gz vyatta-cfg-74e57cf02883a9e1c34df3fd17d3293e98c1fae9.zip |
debian: T5003: Fixes for GCC in Debian 12 "Bookworm"
Fixes compile error: void operator delete(void*, std::size_t)' called on pointer returned from a mismatched allocation function
Diffstat (limited to 'src/cstore')
-rw-r--r-- | src/cstore/cstore.cpp | 2 |
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 |