summaryrefslogtreecommitdiff
path: root/dev-libs/slice-parser/0001-Fix-destory-calls-in-Slice-Parser.patch
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-12-14 12:03:05 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-12-14 12:03:05 +0000
commit00fdcc21c095cd54297f58885e5460be9ca6db70 (patch)
tree7baebdbb00bab976499a5456fb26773dd2aabc8e /dev-libs/slice-parser/0001-Fix-destory-calls-in-Slice-Parser.patch
parentmysql-8.0.21-icu-68.1.patch (diff)
downloadpatches-00fdcc21c095cd54297f58885e5460be9ca6db70.tar.bz2
patches-00fdcc21c095cd54297f58885e5460be9ca6db70.tar.xz
patches-00fdcc21c095cd54297f58885e5460be9ca6db70.zip
Add patches fixing memory leaks in Slice parser and underlying libmcpp
Diffstat (limited to 'dev-libs/slice-parser/0001-Fix-destory-calls-in-Slice-Parser.patch')
-rw-r--r--dev-libs/slice-parser/0001-Fix-destory-calls-in-Slice-Parser.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-libs/slice-parser/0001-Fix-destory-calls-in-Slice-Parser.patch b/dev-libs/slice-parser/0001-Fix-destory-calls-in-Slice-Parser.patch
new file mode 100644
index 0000000..22361c1
--- /dev/null
+++ b/dev-libs/slice-parser/0001-Fix-destory-calls-in-Slice-Parser.patch
@@ -0,0 +1,51 @@
+From 022ff18892aea61af53633ba9c533b3399434d05 Mon Sep 17 00:00:00 2001
+From: Dan Goodliffe <dan@randomdan.homeip.net>
+Date: Mon, 14 Dec 2020 01:49:47 +0000
+Subject: [PATCH 1/2] Fix destory calls in Slice Parser
+
+---
+ cpp/src/Slice/Parser.cpp | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/ice/cpp/src/Slice/Parser.cpp b/ice/cpp/src/Slice/Parser.cpp
+index 8843aeddb0..312b0f3085 100644
+--- a/ice/cpp/src/Slice/Parser.cpp
++++ b/ice/cpp/src/Slice/Parser.cpp
+@@ -3505,7 +3505,7 @@ void
+ Slice::ClassDecl::destroy()
+ {
+ _definition = 0;
+- SyntaxTreeBase::destroy();
++ Constructed::destroy();
+ }
+
+ ClassDefPtr
+@@ -3781,6 +3781,7 @@ Slice::ClassDef::destroy()
+ {
+ _declaration = 0;
+ _bases.clear();
++ Contained::destroy();
+ Container::destroy();
+ }
+
+@@ -4453,6 +4454,7 @@ void
+ Slice::Exception::destroy()
+ {
+ _base = 0;
++ Contained::destroy();
+ Container::destroy();
+ }
+
+@@ -5322,7 +5324,8 @@ Slice::Dictionary::Dictionary(const ContainerPtr& container, const string& name,
+ void
+ Slice::Enum::destroy()
+ {
+- SyntaxTreeBase::destroy();
++ Constructed::destroy();
++ Container::destroy();
+ }
+
+ bool
+--
+2.29.2
+