mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
r8364: fixed a valgrind bug spotted by simo
(This used to be commit ef804e8f36f1835d5d61f69565f1195a70f37e74)
This commit is contained in:
parent
f4ec5d45c3
commit
a7c7a9c64c
@ -278,7 +278,7 @@ void ldb_subclass_remove(struct ldb_context *ldb, const char *class)
|
||||
talloc_free(c->name);
|
||||
talloc_free(c->subclasses);
|
||||
if (ldb->schema.num_classes-(i+1) > 0) {
|
||||
memmove(c, c+1, sizeof(*c) * ldb->schema.num_classes-(i+1));
|
||||
memmove(c, c+1, sizeof(*c) * (ldb->schema.num_classes-(i+1)));
|
||||
}
|
||||
ldb->schema.num_classes--;
|
||||
if (ldb->schema.num_classes == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user