ldb:ldb_dn_explode - point out that on error cases "data" is implicitly free'd
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 18 Nov 2010 07:57:00 +0000 (08:57 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 18 Nov 2010 08:02:21 +0000 (09:02 +0100)
source4/lib/ldb/common/ldb_dn.c

index a17d5166b1c1d8693679b2a1069e8eea4a41e328..9bf8658462174cf1865772e5ffd8c1c520970600 100644 (file)
@@ -729,7 +729,7 @@ static bool ldb_dn_explode(struct ldb_dn *dn)
        return true;
 
 failed:
-       LDB_FREE(dn->components);
+       LDB_FREE(dn->components); /* "data" is implicitly free'd */
        dn->comp_num = 0;
        LDB_FREE(dn->ext_components);
        dn->ext_comp_num = 0;