Fix Python return value policy for `get_symbol()`

Resolve #305
This commit is contained in:
Romain Thomas
2019-06-23 10:17:24 +02:00
parent 9dd9ded098
commit 778763de88
+1 -1
View File
@@ -123,7 +123,7 @@ void create<Binary>(py::module& m) {
static_cast<no_const_func<Symbol&, const std::string&>>(&Binary::get_symbol),
"Return the " RST_CLASS_REF(lief.Symbol) " with the given ``name``",
"symbol_name"_a,
py::return_value_policy::reference)
py::return_value_policy::reference_internal)
.def("get_function_address",
&Binary::get_function_address,