diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-12 22:30:39 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-12 22:30:39 (EST) |
commit | 96bc9929dc1d9c5c95c7b24663d8b883289b6bf3 (patch) | |
tree | f92f396e89e5231cc6db158787bf16e1a7958fa8 /libopkg | |
parent | 51e968e4ddffd4acd7c71e4976e1254a590f2217 (diff) |
Free the lock, close the file descriptor.
git-svn-id: http://opkg.googlecode.com/svn/trunk@297 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r-- | libopkg/opkg_conf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libopkg/opkg_conf.c b/libopkg/opkg_conf.c index dc2c5f9..2d7b881 100644 --- 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, |