summaryrefslogtreecommitdiffstats
path: root/source/lib/ldb/common
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-11-16 11:05:37 +0000
committerStefan Metzmacher <metze@samba.org>2006-11-16 11:05:37 +0000
commitf27ff2f45032bc9cf3bc6b9bbee2fb8fb937d8e8 (patch)
treeabc2a34b2555f76ffe388369d3ab01b28413cb90 /source/lib/ldb/common
parent570eb1cafaf2b8a4c2bc1faae75cf499eef2ed6b (diff)
downloadsamba-f27ff2f45032bc9cf3bc6b9bbee2fb8fb937d8e8.tar.gz
samba-f27ff2f45032bc9cf3bc6b9bbee2fb8fb937d8e8.tar.xz
samba-f27ff2f45032bc9cf3bc6b9bbee2fb8fb937d8e8.zip
r19740: fix compiler warning
metze
Diffstat (limited to 'source/lib/ldb/common')
-rw-r--r--source/lib/ldb/common/ldb_attributes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/ldb/common/ldb_attributes.c b/source/lib/ldb/common/ldb_attributes.c
index 2d9f0e6cf88..26c1aac5a58 100644
--- a/source/lib/ldb/common/ldb_attributes.c
+++ b/source/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) {