]> err.no Git - pkg-config/commitdiff
2002-09-19 Anders Carlsson <andersca@gnu.org>
authorArch Librarian <arch@canonical.com>
Thu, 14 Jul 2005 13:05:23 +0000 (13:05 +0000)
committerArch Librarian <arch@canonical.com>
Thu, 14 Jul 2005 13:05:23 +0000 (13:05 +0000)
Author: andersca
Date: 2002-09-19 14:23:55 GMT
2002-09-19  Anders Carlsson  <andersca@gnu.org>

* pkg.c: (verify_package):
Don't call g_free on strings returned from g_getenv.

ChangeLog
pkg.c

index 4e655e59283c1b6495921c20dca33d7319904e72..9d6113ad3829b7723c570decfa88d02f4cb2f823 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-19  Anders Carlsson  <andersca@gnu.org>
+
+       * pkg.c: (verify_package):
+       Don't call g_free on strings returned from g_getenv.
+       
 Tue Sep 17 14:11:51 2002  Jonathan Blandford  <jrb@redhat.com>
 
        * pkg.c: strip out C_INCLUDE_PATH and CPLUS_INCLUDE_PATH if they
diff --git a/pkg.c b/pkg.c
index 8e145432380134e860346f7a38918ebe93d47f52..8b57d5de11fcb73d059553232655c1c08b34bb0d 100644 (file)
--- a/pkg.c
+++ b/pkg.c
@@ -785,14 +785,12 @@ verify_package (Package *pkg)
   if (c_include_path != NULL)
     {
       system_directories = add_env_variable_to_list (system_directories, c_include_path);
-      g_free (c_include_path);
     }
   
   c_include_path = g_getenv ("CPLUS_INCLUDE_PATH");
   if (c_include_path != NULL)
     {
       system_directories = add_env_variable_to_list (system_directories, c_include_path);
-      g_free (c_include_path);
     }
 
   count = 0;