exported-object: don't clone class_export_path for counter cache

It's a static string anyway.
This commit is contained in:
Thomas Haller 2017-01-03 15:44:06 +01:00
parent 8006045d0d
commit cd1466190e

View file

@ -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")