uci: unload package on revert

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2015-05-17 14:13:02 +02:00
parent 9a6bfa110a
commit 3d655417ab

3
uci.c
View file

@ -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();