X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=blobdiff_plain;f=file.c;h=31a937dec0dc975104c471a18e3c91e48f3e421b;hp=9a3dfd8b3d60b0992a1fc3a86db78462034b8356;hb=361b823e8d670bc122349041294983468ef36845;hpb=b65f6a844f920eb19f7d05d2ee93819b72021057 diff --git a/file.c b/file.c index 9a3dfd8..31a937d 100644 --- a/file.c +++ b/file.c @@ -267,6 +267,8 @@ rpc_file_list(struct ubus_context *ctx, struct ubus_object *obj, blobmsg_close_table(&buf, d); } + closedir(fd); + blobmsg_close_array(&buf, c); ubus_send_reply(ctx, req, buf.head); blob_buf_free(&buf);