mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 10:30:13 +01:00
exported-object: don't clone class_export_path for counter cache
It's a static string anyway.
This commit is contained in:
parent
8006045d0d
commit
cd1466190e
1 changed files with 1 additions and 1 deletions
|
|
@ -583,7 +583,7 @@ _create_export_path (NMExportedObjectClass *klass)
|
|||
counter = g_hash_table_lookup (prefix_counters, class_export_path);
|
||||
if (!counter) {
|
||||
counter = g_slice_new0 (guint64);
|
||||
g_hash_table_insert (prefix_counters, g_strdup (class_export_path), counter);
|
||||
g_hash_table_insert (prefix_counters, (char *) class_export_path, counter);
|
||||
}
|
||||
|
||||
NM_PRAGMA_WARNING_DISABLE("-Wformat-nonliteral")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue