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

gEDA-user: [PATCH 2/3] gnetlist: Fix memory leak in g_get_package_attribute().



---

 gnetlist/src/g_netlist.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gnetlist/src/g_netlist.c b/gnetlist/src/g_netlist.c
index b3af8fa..14441cc 100644
--- a/gnetlist/src/g_netlist.c
+++ b/gnetlist/src/g_netlist.c
@@ -513,6 +513,7 @@ SCM g_get_package_attribute(SCM scm_uref, SCM scm_wanted_attrib)
     } else {
       scm_return_value = scm_makfrom0str ("unknown");
     }
+    g_free (return_value);
 
     free (uref);
     free (wanted_attrib);



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