diff options
author | Thomas Haller <thaller@redhat.com> | 2017-01-03 15:44:06 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-01-03 15:46:10 +0100 |
commit | cd1466190ef01a81548791dee23fcc100615d5ce (patch) | |
tree | b6b4ce2239b6d4c6360ed0857b495b5601208d5f | |
parent | 8006045d0de717059c70feed0a845a8ee7ddb7db (diff) | |
download | NetworkManager-cd1466190ef01a81548791dee23fcc100615d5ce.tar.gz |
exported-object: don't clone class_export_path for counter cache
It's a static string anyway.
-rw-r--r-- | src/nm-exported-object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-exported-object.c b/src/nm-exported-object.c index 47430bb350..0ad7301249 100644 --- a/src/nm-exported-object.c +++ b/src/nm-exported-object.c @@ -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") |