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

gEDA-cvs: CVS update: a_basic.c



  User: ahvezda 
  Date: 06/09/30 12:27:23

  Modified:    .        a_basic.c
  Log:
  Fixed memory leak in o_save
  
  
  
  
  Revision  Changes    Path
  1.22      +1 -0      eda/geda/gaf/libgeda/src/a_basic.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: a_basic.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/a_basic.c,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -b -r1.21 -r1.22
  --- a_basic.c	6 Aug 2006 17:04:55 -0000	1.21
  +++ a_basic.c	30 Sep 2006 16:27:23 -0000	1.22
  @@ -224,6 +224,7 @@
               out = (char *) o_complex_save(o_current);
               fprintf(fp, "%s\n", out);
               already_wrote=1;
  +	    g_free(out); /* need to free here because of the above flag */
               if (strncmp(o_current->complex_clib, "EMBEDDED", 8) == 0) {
                 fprintf(fp, "[\n");
   								
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs