1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-22 16:23:49 +03:00

r8364: fixed a valgrind bug spotted by simo

This commit is contained in:
Andrew Tridgell
2005-07-12 09:02:58 +00:00
committed by Gerald (Jerry) Carter
parent c4c93eeec2
commit ef804e8f36

View File

@@ -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) {