diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-05-17 14:13:02 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-05-17 14:13:02 +0200 |
commit | 3d655417ab44d93aad56a6d4a668daf24b127b84 (patch) | |
tree | 4c1381f206b742b548739b7b1829b573c6316e50 | |
parent | 9a6bfa110a5f8caa10951921b63bafdbb6e97d33 (diff) | |
download | rpcd-3d655417ab44d93aad56a6d4a668daf24b127b84.tar.gz |
uci: unload package on revert
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rw-r--r-- | uci.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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(); |