summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-object-cache.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-03-08 18:35:08 -0600
committerDan Williams <dcbw@redhat.com>2012-03-12 14:33:17 -0500
commit4a370a9fa59a4b0b5dbfefaf3958767c667f4a27 (patch)
tree0d52b1bd03f1e19da783e0dc97523d46427b48f9 /libnm-glib/nm-object-cache.h
parent54ef8f3224a02aac76623cfa0a7d38c3b3ff7d3e (diff)
downloadNetworkManager-4a370a9fa59a4b0b5dbfefaf3958767c667f4a27.tar.gz
libnm-glib: prevent possible access of freed memory
valgrind reported that 'path' is already freed by the time we get to _nm_object_cache_remove_by_path().
Diffstat (limited to 'libnm-glib/nm-object-cache.h')
-rw-r--r--libnm-glib/nm-object-cache.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/libnm-glib/nm-object-cache.h b/libnm-glib/nm-object-cache.h
index 2348dcfa09..8386591cd8 100644
--- a/libnm-glib/nm-object-cache.h
+++ b/libnm-glib/nm-object-cache.h
@@ -32,8 +32,6 @@ G_BEGIN_DECLS
/* Returns referenced object from the cache */
NMObject *_nm_object_cache_get (const char *path);
void _nm_object_cache_add (NMObject *object);
-void _nm_object_cache_remove_by_object (NMObject *object);
-void _nm_object_cache_remove_by_path (const char *path);
G_END_DECLS