summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/common/ldb_attributes.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-11-16 11:02:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:51 -0500
commit0fa75c6797ce70502aa0051dc70c69de424f7ccb (patch)
tree418d1276d9796cea7770ae4f0bcfe703260122d2 /source3/lib/ldb/common/ldb_attributes.c
parent81cf0a5cd8ffd9517ef2f4d115708c1c193cae93 (diff)
downloadsamba-0fa75c6797ce70502aa0051dc70c69de424f7ccb.tar.gz
samba-0fa75c6797ce70502aa0051dc70c69de424f7ccb.tar.bz2
samba-0fa75c6797ce70502aa0051dc70c69de424f7ccb.zip
r19739: fix compiler warning
metze (This used to be commit b7965ac26cbfdfe60f929e2fa3a295b8c57d220d)
Diffstat (limited to 'source3/lib/ldb/common/ldb_attributes.c')
-rw-r--r--source3/lib/ldb/common/ldb_attributes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ldb/common/ldb_attributes.c b/source3/lib/ldb/common/ldb_attributes.c
index 2d9f0e6cf8..26c1aac5a5 100644
--- a/source3/lib/ldb/common/ldb_attributes.c
+++ b/source3/lib/ldb/common/ldb_attributes.c
@@ -141,7 +141,7 @@ void ldb_remove_attrib_handler(struct ldb_context *ldb, const char *attrib)
return;
}
if (h->flags & LDB_ATTR_FLAG_ALLOCATED) {
- talloc_free(h->attr);
+ talloc_free(discard_const_p(char, h->attr));
}
i = h - ldb->schema.attrib_handlers;
if (i < ldb->schema.num_attrib_handlers - 1) {