lib/waiter: fix talloc_realloc context
[petitboot] / lib / waiter / waiter.c
index b36c1afdac35450139ad318c9c7f7e1c8462f699..13b0d68fc05ac6a32a03aea748377d0da03c226e 100644 (file)
@@ -138,7 +138,7 @@ void waiter_remove(struct waiter *waiter)
        memmove(&set->waiters[i], &set->waiters[i+1],
                (set->n_waiters - i) * sizeof(set->waiters[0]));
 
-       set->waiters = talloc_realloc(set->waiters, set->waiters,
+       set->waiters = talloc_realloc(set, set->waiters,
                        struct waiter *, set->n_waiters);
        set->waiters_changed = true;