Imported Upstream version 1.1.0
[platform/upstream/iotivity.git] / tools / valgrind / iotivity.supp
1 # ------------------------------------------------------------------------
2 # Copyright 2015 Intel Corporation
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 # ------------------------------------------------------------------------
16
17 # ************************************************************************
18 # This file contains Valgrind suppressions.  It is meant to make
19 # Valgrind ignore memory violations that are out of the control of
20 # IoTivity developers.  Do NOT abuse this file by adding suppressions
21 # for memory violations that can be addressed in IoTivity itself.
22 # ************************************************************************
23
24 # ************************************************************************
25 # GLib related suppressions
26 #
27 # These suppressions hide "possibly lost" leak diagnostics from
28 # Valgrind that occur from running simple  code like the following:
29 #     GError * error = NULL;
30 #     GDBusConnection * const connection =
31 #         g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &error);
32 #     g_object_unref(connection);
33 # ************************************************************************
34
35 # gdbus-codegen generated code
36 {
37    gdbus-codegen/*-skeleton-new
38    Memcheck:Leak
39    ...
40    fun:*_skeleton_new
41 }
42 # GLib >= 2.44.1
43 {
44    glib/gobject-init-ctor
45    Memcheck:Leak
46    ...
47    fun:gobject_init_ctor
48 }
49 {
50    glib/g-dbus-auth-run-client
51    Memcheck:Leak
52    ...
53    fun:_g_dbus_auth_run_client
54 }
55 {
56    glib/g-main-context-iterate-
57    Memcheck:Leak
58    ...
59    fun:g_main_context_iterate.*
60 }
61 {
62    glib/g-main-context-dispatch
63    Memcheck:Leak
64    ...
65    fun:g_main_context_dispatch
66 }
67 {
68    glib/g-bus-get-sync
69    Memcheck:Leak
70    ...
71    fun:g_bus_get_sync
72 }
73 {
74    glib/get-uninitialized-connection
75    Memcheck:Leak
76    ...
77    fun:get_uninitialized_connection
78 }
79 {
80    glib/g-dbus-address-get-stream-sync
81    Memcheck:Leak
82    ...
83    fun:g_dbus_address_get_stream_sync
84 }
85 {
86    glib/g-type-register-static-simple
87    Memcheck:Leak
88    ...
89    fun:g_type_register_static_simple
90 }
91 {
92    glib/g-type-add-interface-static
93    Memcheck:Leak
94    ...
95    fun:g_type_add_interface_static
96 }
97 {
98    glib/complete-in-idle-cb
99    Memcheck:Leak
100    ...
101    fun:complete_in_idle_cb
102 }
103 {
104    glib/g-dbus-address-try-connect-one
105    Memcheck:Leak
106    ...
107    fun:g_dbus_address_try_connect_one
108 }
109 {
110    glib/g-initable-new
111    Memcheck:Leak
112    ...
113    fun:g_initable_new
114 }
115 # GLib < 2.36
116 {
117    glib/g-type-register-fundamental
118    Memcheck:Leak
119    ...
120    fun:g_type_register_fundamental
121 }
122 {
123    glib/g-type-register-static
124    Memcheck:Leak
125    ...
126    fun:g_type_register_static
127 }
128 {
129    glib/g-malloc0
130    Memcheck:Leak
131    ...
132    fun:g_malloc0
133    obj:/usr/lib/*/libgobject-2.0*.so.*
134 }
135 {
136    glib/g-dbus-connection-send-message-with-reply-sync
137    Memcheck:Leak
138    ...
139    fun:g_dbus_connection_send_message_with_reply_sync
140 }
141 # ************************************************************************