From: Jo-Philipp Wich Date: Sun, 17 May 2015 12:13:02 +0000 (+0200) Subject: uci: unload package on revert X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=3d655417ab44d93aad56a6d4a668daf24b127b84;p=project%2Frpcd.git uci: unload package on revert Signed-off-by: Jo-Philipp Wich --- diff --git a/uci.c b/uci.c index acbbfd8..8b5dafd 100644 --- a/uci.c +++ b/uci.c @@ -1150,7 +1150,10 @@ rpc_uci_revert_commit(struct ubus_context *ctx, struct blob_attr *msg, bool comm else { if (!uci_lookup_ptr(cursor, &ptr, NULL, true) && ptr.p) + { uci_revert(cursor, &ptr); + uci_unload(cursor, ptr.p); + } } return rpc_uci_status();