[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/ricci/modules/storage FileMagic.cpp



CVSROOT:	/cvs/cluster
Module name:	conga
Changes by:	kupcevic sourceware org	2006-09-23 09:26:58

Modified files:
	ricci/modules/storage: FileMagic.cpp 

Log message:
	storage module: don't free libmagic's return buffer - double free

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/FileMagic.cpp.diff?cvsroot=cluster&r1=1.2&r2=1.3

--- conga/ricci/modules/storage/FileMagic.cpp	2006/09/14 17:57:56	1.2
+++ conga/ricci/modules/storage/FileMagic.cpp	2006/09/23 09:26:58	1.3
@@ -56,14 +56,14 @@
       throw String("unknown data detected");
     
     magic_close(cookie); cookie = 0;
-    free((char*) buff); buff = 0;
+    //    free((char*) buff); buff = 0;
     
     return descr;
   } catch ( ... ) {
     if (cookie)
       magic_close(cookie);
-    if (buff)
-      free((char*) buff);
+    //    if (buff)
+    //      free((char*) buff);
     throw;
   }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]