/*
* Copyright (c) 2012 Novell, Inc.
- * Copyright (c) [2016-2023] SUSE LLC
+ * Copyright (c) [2016-2025] SUSE LLC
*
* All Rights Reserved.
*
const char* TypeInfo<string>::signature = "s";
+ string
+ Marshalling::get_signature()
+ {
+ char* tmp = dbus_message_iter_get_signature(top());
+ if (!tmp)
+ SN_THROW(FatalException());
+
+ string sig = tmp;
+ dbus_free(tmp);
+ return sig;
+ }
+
+
Unmarshaller::Unmarshaller(Message& msg)
{
iters.push_back(new DBusMessageIter());
assert(iters.empty());
}
+
void
Marshaller::open_struct()
{
/*
* Copyright (c) 2012 Novell, Inc.
- * Copyright (c) [2016-2023] SUSE LLC
+ * Copyright (c) [2016-2025] SUSE LLC
*
* All Rights Reserved.
*
DBusMessageIter* top() { return iters.back(); }
int get_type() { return dbus_message_iter_get_arg_type(top()); }
- string get_signature() { return dbus_message_iter_get_signature(top()); }
+ string get_signature();
protected:
+-------------------------------------------------------------------
+Mon Aug 04 17:00:45 CEST 2025 - Arvin Schnell <aschnell@suse.com>
+
+- fixed memory leak in DBus Marshalling
+
-------------------------------------------------------------------
Wed Jul 23 10:35:22 CEST 2025 - aschnell@suse.com