When processing file names passed on command line, the pathname built
for each one was not freed.
---
 gschem/src/gschem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gschem/src/gschem.c b/gschem/src/gschem.c
index 7958d23..d350903 100644
--- a/gschem/src/gschem.c
+++ b/gschem/src/gschem.c
@@ -287,7 +287,7 @@ void main_prog(void *closure, int argc, char *argv[])
      * f_open (called by x_window_open_page). This works for Linux and MINGW32.
      */
     x_window_open_page(w_current, filename);
-
+    g_free (filename);
   }
 
   g_free(cwd);
-- 
1.5.6




_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to