-use GNUNET_free instead of free
authorChristian Grothoff <christian@grothoff.org>
Mon, 13 Feb 2012 13:08:28 +0000 (13:08 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 13 Feb 2012 13:08:28 +0000 (13:08 +0000)
src/util/common_logging.c
src/util/os_installation.c

index 2fa3f9e24e68b929816dec6c75bee8e35afe7f70..59de9622664fea9b37de07247797a4d81c093a7c 100644 (file)
@@ -456,7 +456,7 @@ parse_definitions (const char *constname, int force)
           from_line = strtol (start, &t, 10);
           if (errno != 0 || from_line < 0)
           {
-            free (def);
+            GNUNET_free (def);
             return counter;
           }
           if (t < p && t[0] == '-')
@@ -466,7 +466,7 @@ parse_definitions (const char *constname, int force)
             to_line = strtol (start, &t, 10);
             if (errno != 0 || to_line < 0 || t != p)
             {
-              free (def);
+              GNUNET_free (def);
               return counter;
             }
           }
@@ -498,7 +498,7 @@ parse_definitions (const char *constname, int force)
             0 != add_definition (comp, file, function, from_line, to_line,
                                  level, force))
         {
-          free (def);
+          GNUNET_free (def);
           return counter;
         }
         counter += 1;
@@ -511,7 +511,7 @@ parse_definitions (const char *constname, int force)
       break;
     }
   }
-  free (def);
+  GNUNET_free (def);
   return counter;
 }
 
index 2362b160daa52a370f5d3a7f005dcae9d6576bb6..b82813d74dccc1efc70bf21551d0e95122fd07c9 100644 (file)
@@ -471,7 +471,7 @@ GNUNET_OS_check_helper_binary (const char *binary)
     GNUNET_free (p);
     p = pf;
   }
-  free (binaryexe);
+  GNUNET_free (binaryexe);
 #else
   p = get_path_from_PATH (binary);
   if (p != NULL)