On 12/02/2010 02:24 PM, Ivana Hutarova Varekova wrote: > free the used memory correctly > > Signed-off-by: Ivana Hutarova Varekova<[email protected]> Acked-By: Jan Safranek <[email protected]>
> --- > > src/tools/cgsnapshot.c | 3 +-- > 1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/src/tools/cgsnapshot.c b/src/tools/cgsnapshot.c > index b5710a3..b223970 100644 > --- a/src/tools/cgsnapshot.c > +++ b/src/tools/cgsnapshot.c > @@ -470,11 +470,10 @@ static int display_controller_data( > display_cgroup_data(group, controller, info.full_path, > prefix_len, first, program_name); > first = 0; > + cgroup_free(&group); > } > } > > - cgroup_free(&group); > - > err: > cgroup_walk_tree_end(&handle); > if (ret == ECGEOF) > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App& Earn a Chance To Win $500! > Tap into the largest installed PC base& get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Libcg-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/libcg-devel ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
