summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2010-12-23 23:03:18 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-01-03 13:51:37 -0500
commit703886478f38cdad2e81095aae0662137b47f504 (patch)
tree77ff7ab49fd798c5b7dd73254d0e6c9370823ab9
parenta10ece2161bdf54e244568661eff283bba95fb5a (diff)
downloadding-libs-703886478f38cdad2e81095aae0662137b47f504.tar.gz
ding-libs-703886478f38cdad2e81095aae0662137b47f504.tar.xz
ding-libs-703886478f38cdad2e81095aae0662137b47f504.zip
File descritpor leak
Noticed under valgrind then checked and saw that this is a coverity issue 10077.
-rw-r--r--ini/ini_valueobj_ut.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ini/ini_valueobj_ut.c b/ini/ini_valueobj_ut.c
index f9ca882..767a64c 100644
--- a/ini/ini_valueobj_ut.c
+++ b/ini/ini_valueobj_ut.c
@@ -532,6 +532,7 @@ int vo_copy_test(void)
if (error) {
printf("Failed to save value to file %d.\n", error);
value_destroy(vo);
+ fclose(ff);
return error;
}
@@ -601,6 +602,7 @@ int vo_copy_test(void)
}
value_destroy(vo);
+ fclose(ff);
TRACE_FLOW_EXIT();
return EOK;
}