On Sun, 21 Nov 2010 12:59:25 +0100 (CET) Vincent Torri <vto...@univ-evry.fr> said:
> > > On Sat, 20 Nov 2010, Enlightenment SVN wrote: > > > Log: > > fix possible leak. > > And ChangeLog ? was waiting on disco-stu to confirm it was an actual fix. :) > Vincent > > > > > > > Author: raster > > Date: 2010-11-20 21:18:19 -0800 (Sat, 20 Nov 2010) > > New Revision: 54755 > > > > Modified: > > trunk/eet/src/lib/eet_lib.c > > > > Modified: trunk/eet/src/lib/eet_lib.c > > =================================================================== > > --- trunk/eet/src/lib/eet_lib.c 2010-11-21 04:37:52 UTC (rev 54754) > > +++ trunk/eet/src/lib/eet_lib.c 2010-11-21 05:18:19 UTC (rev 54755) > > @@ -1833,7 +1833,7 @@ > > /* compressed data */ > > else > > { > > - void *tmp_data; > > + void *tmp_data = NULL; > > void *data_deciphered = NULL; > > unsigned int data_deciphered_sz = 0; > > int free_tmp = 0; > > @@ -1873,7 +1873,9 @@ > > goto on_error; > > } > > > > - free(tmp_data); > > + if (free_tmp) > > + free(tmp_data); > > + free_tmp = 1; > > tmp_data = data_deciphered; > > compr_size = data_deciphered_sz; > > } > > @@ -1882,7 +1884,11 @@ > > dlen = size; > > if (uncompress((Bytef *)data, &dlen, > > tmp_data, (uLongf)compr_size)) > > - goto on_error; > > + { > > + if (free_tmp) > > + free(tmp_data); > > + goto on_error; > > + } > > > > if (free_tmp) > > free(tmp_data); > > > > > > ------------------------------------------------------------------------------ > > Beautiful is writing same markup. Internet Explorer 9 supports > > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > > Spend less time writing and rewriting code and more time creating great > > experiences on the web. Be a part of the beta today > > http://p.sf.net/sfu/msIE9-sfdev2dev > > _______________________________________________ > > enlightenment-svn mailing list > > enlightenment-...@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > > > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel