projects
/
platform
/
upstream
/
evolution-data-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
809dc3d
)
Suppress a false-positive cppcheck memleak warning
author
Vadim Rutkovsky
<vrutkovs@redhat.com>
Tue, 12 Nov 2013 12:27:44 +0000
(13:27 +0100)
committer
Milan Crha
<mcrha@redhat.com>
Tue, 12 Nov 2013 12:30:26 +0000
(13:30 +0100)
Make sure you run cppcheck with ''inline-suppr" to take it into effect.
addressbook/backends/ldap/openldap-extract.h
patch
|
blob
|
history
diff --git
a/addressbook/backends/ldap/openldap-extract.h
b/addressbook/backends/ldap/openldap-extract.h
index
6a356d0
..
57a8a0a
100644
(file)
--- a/
addressbook/backends/ldap/openldap-extract.h
+++ b/
addressbook/backends/ldap/openldap-extract.h
@@
-404,6
+404,7
@@
parse_oids (const gchar **sp, gint *code, const gint allow_quoted)
*code = LDAP_SCHERR_UNEXPTOKEN;
LDAP_FREE (sval);
LDAP_VFREE (res);
+ /* cppcheck-suppress memleak */
return NULL;
}
parse_whsp (sp);