aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-01-16 02:46:12 +0000
committerJason Woodward2005-01-16 02:46:12 +0000
commitf2a89c6b447917fe0d9018e5c20cf8822afebbdd (patch)
tree03f150d4fd5da5fe41c218cb5fd58bafdace7bd2 /src
parent4232425126c65c8e4bd3b706e07913576337f5ce (diff)
downloadslapt-get-f2a89c6b447917fe0d9018e5c20cf8822afebbdd.tar.gz
added missing fclose() calls in read_rc_config() and read_head_cache()
Diffstat (limited to 'src')
-rw-r--r--src/configuration.c1
-rw-r--r--src/package.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/configuration.c b/src/configuration.c
index 695dcf2..5125d5b 100644
--- a/src/configuration.c
+++ b/src/configuration.c
@@ -111,6 +111,7 @@ rc_config *read_rc_config(const char *file_name){
}/* end if/else if */
}/* end while */
+ fclose(rc);
if( getline_buffer ) free(getline_buffer);
if( strcmp(global_config->working_dir,"") == 0 ){
diff --git a/src/package.c b/src/package.c
index 8941476..7d9042e 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1553,6 +1553,7 @@ char *read_head_cache(const char *cache_filename){
if( tmp == NULL ) exit(1);
rewind(tmp);
gl_return_size = getline(&getline_buffer, &gl_n, tmp);
+ fclose(tmp);
if( gl_return_size == -1 ){
free(getline_buffer);