git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd3942
)
r19740: fix compiler warning
author
Stefan Metzmacher
<metze@samba.org>
Thu, 16 Nov 2006 11:05:37 +0000
(11:05 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:28:17 +0000
(14:28 -0500)
metze
(This used to be commit
666e674504c514033390bf69746fb3c35baf4b2a
)
source4/lib/ldb/common/ldb_attributes.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_attributes.c
b/source4/lib/ldb/common/ldb_attributes.c
index 2d9f0e6cf88d22b67f0f1cf6acd9936d46f37a37..26c1aac5a58f5caabb32cfefe7dce20fb50e65de 100644
(file)
--- a/
source4/lib/ldb/common/ldb_attributes.c
+++ b/
source4/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) {