From: Felix Fietkau Date: Fri, 23 Jan 2015 11:34:12 +0000 (+0100) Subject: bridge: release failed member devices X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fb2f843edf44c6f12b636cd82cdd1c71e953495f;p=oweals%2Fnetifd.git bridge: release failed member devices Signed-off-by: Felix Fietkau --- diff --git a/bridge.c b/bridge.c index d0cb048..4291e7c 100644 --- a/bridge.c +++ b/bridge.c @@ -180,6 +180,8 @@ error: bst->n_failed++; bm->present = false; bst->n_present--; + device_release(&bm->dev); + return ret; }