Suppress a false-positive cppcheck memleak warning
authorVadim Rutkovsky <vrutkovs@redhat.com>
Tue, 12 Nov 2013 12:27:44 +0000 (13:27 +0100)
committerMilan 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

index 6a356d0..57a8a0a 100644 (file)
@@ -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);