diff --git a/INSTALL b/INSTALL index 3032c09a37..f83d9f31f9 100644 --- a/INSTALL +++ b/INSTALL @@ -97,8 +97,10 @@ For ipset support To build using clang/llvm apt install clang llvm -Alpine Linux +Alpine Linux (apk add ...) ------------ +For building packages + automake autoconf alpine-sdk The following libraries need to be installed: linux-headers iptables-dev ipset-dev libnl3-dev musl-dev libnftnl-dev and openssl-dev or libressl-dev For magic file identification support: diff --git a/lib/rttables.c b/lib/rttables.c index c381aa0f74..f1c960c086 100644 --- a/lib/rttables.c +++ b/lib/rttables.c @@ -412,8 +412,9 @@ initialise_list(list_head_t *l, const char *file_name, const rt_entry_t *default read_file(path, l, max); } + + closedir(dir); } - closedir(dir); #endif /* Now read the entries in the IPROUTE_ETC_DIR subdirectory */ @@ -425,8 +426,9 @@ initialise_list(list_head_t *l, const char *file_name, const rt_entry_t *default read_file(path, l, max); } + + closedir(dir); } - closedir(dir); FREE_PTR(path); #ifdef IPROUTE_USR_DIR