From 3c205946e2b272ff3557046ff2e55376ea78aa61 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 24 Jun 2019 14:30:12 +0200 Subject: [PATCH] fixes #0003993: Memory leak with Python3 --- src/CXX/Python3/Objects.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CXX/Python3/Objects.hxx b/src/CXX/Python3/Objects.hxx index e001e894da..490978ec8d 100644 --- a/src/CXX/Python3/Objects.hxx +++ b/src/CXX/Python3/Objects.hxx @@ -2033,25 +2033,25 @@ namespace Py } String() - : SeqBase( PyUnicode_FromString( "" ) ) + : SeqBase( PyUnicode_FromString( "" ), true ) { validate(); } String( const char *latin1 ) - : SeqBase( PyUnicode_FromString( latin1 ) ) + : SeqBase( PyUnicode_FromString( latin1 ), true ) { validate(); } String( const std::string &latin1 ) - : SeqBase( PyUnicode_FromStringAndSize( latin1.c_str(), latin1.size() ) ) + : SeqBase( PyUnicode_FromStringAndSize( latin1.c_str(), latin1.size() ), true ) { validate(); } String( const char *latin1, Py_ssize_t size ) - : SeqBase( PyUnicode_FromStringAndSize( latin1, size ) ) + : SeqBase( PyUnicode_FromStringAndSize( latin1, size ), true ) { validate(); }