projects
/
project
/
rpcd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uci: unload package on revert
[project/rpcd.git]
/
uci.c
diff --git
a/uci.c
b/uci.c
index
acbbfd8
..
8b5dafd
100644
(file)
--- 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();