X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=history.c;h=a31dbfaf1cb23d5ed196e4f6cbc66daf0a4ea042;hp=789cd875429d72c61f9573188e080137b383f426;hb=213d8d8934f797849eb80b7ac06b6d37f3090e40;hpb=5f169aebd1d827bd19bc22b881c11994a8adb3f4 diff --git a/history.c b/history.c index 789cd87..a31dbfa 100644 --- a/history.c +++ b/history.c @@ -318,7 +318,7 @@ static void uci_filter_history(struct uci_context *ctx, const char *name, const done: if (filename) free(filename); - uci_close_stream(f); + uci_close_stream(pctx->file); uci_foreach_element_safe(&list, tmp, e) { uci_free_element(e); }