projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Free the lock, close the file descriptor.
[oweals/opkg-lede.git]
/
libopkg
/
opkg_conf.c
diff --git
a/libopkg/opkg_conf.c
b/libopkg/opkg_conf.c
index dc2c5f9ea414cba098aa79cfc696da55da484276..2d7b8819ba54e5781a47d1b02bdb3bb01cea00e6 100644
(file)
--- a/
libopkg/opkg_conf.c
+++ b/
libopkg/opkg_conf.c
@@
-420,6
+420,9
@@
void opkg_conf_deinit(opkg_conf_t *conf)
hash_table_deinit(&conf->file_hash);
if (&conf->obs_file_hash)
hash_table_deinit(&conf->obs_file_hash);
+
+ lockf(conf->lock_fd, F_ULOCK, 0);
+ close(conf->lock_fd);
}
static int opkg_conf_set_default_dest(opkg_conf_t *conf,