Close the iterators on error. In addition, handling when FL_SILENT flag is
on/off should be the same, except the error output.

Signed-off-by: Jan Safranek <jsafr...@redhat.com>
---

 src/tools/cgsnapshot.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/tools/cgsnapshot.c b/src/tools/cgsnapshot.c
index a24dae7..51194f6 100644
--- a/src/tools/cgsnapshot.c
+++ b/src/tools/cgsnapshot.c
@@ -659,7 +659,6 @@ static int parse_mountpoints(cont_name_t 
cont_names[CG_CONTROLLER_MAX],
                        fprintf(stderr,
                                "E: in get next controller %s\n",
                                cgroup_strerror(ret));
-                       return ret;
                }
                final_ret = ret;
        }
@@ -681,7 +680,6 @@ static int parse_mountpoints(cont_name_t 
cont_names[CG_CONTROLLER_MAX],
                        fprintf(stderr,
                                "E: in get next controller %s\n",
                                cgroup_strerror(ret));
-                       return ret;
                }
                final_ret = ret;
        }


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to