aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-13 13:08:28 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-13 13:08:28 +0000
commit9a8ea460352e26819f3de1b8a4185b3c63d9444c (patch)
tree542c1d4ca7bcab0a241c60ec86edce684ce88c12 /src/util
parent5a9080e410390adb152263261842ce2f6da347b5 (diff)
downloadgnunet-9a8ea460352e26819f3de1b8a4185b3c63d9444c.tar.gz
gnunet-9a8ea460352e26819f3de1b8a4185b3c63d9444c.zip
-use GNUNET_free instead of free
Diffstat (limited to 'src/util')
-rw-r--r--src/util/common_logging.c8
-rw-r--r--src/util/os_installation.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c
index 2fa3f9e24..59de96226 100644
--- a/src/util/common_logging.c
+++ b/src/util/common_logging.c
@@ -456,7 +456,7 @@ parse_definitions (const char *constname, int force)
456 from_line = strtol (start, &t, 10); 456 from_line = strtol (start, &t, 10);
457 if (errno != 0 || from_line < 0) 457 if (errno != 0 || from_line < 0)
458 { 458 {
459 free (def); 459 GNUNET_free (def);
460 return counter; 460 return counter;
461 } 461 }
462 if (t < p && t[0] == '-') 462 if (t < p && t[0] == '-')
@@ -466,7 +466,7 @@ parse_definitions (const char *constname, int force)
466 to_line = strtol (start, &t, 10); 466 to_line = strtol (start, &t, 10);
467 if (errno != 0 || to_line < 0 || t != p) 467 if (errno != 0 || to_line < 0 || t != p)
468 { 468 {
469 free (def); 469 GNUNET_free (def);
470 return counter; 470 return counter;
471 } 471 }
472 } 472 }
@@ -498,7 +498,7 @@ parse_definitions (const char *constname, int force)
498 0 != add_definition (comp, file, function, from_line, to_line, 498 0 != add_definition (comp, file, function, from_line, to_line,
499 level, force)) 499 level, force))
500 { 500 {
501 free (def); 501 GNUNET_free (def);
502 return counter; 502 return counter;
503 } 503 }
504 counter += 1; 504 counter += 1;
@@ -511,7 +511,7 @@ parse_definitions (const char *constname, int force)
511 break; 511 break;
512 } 512 }
513 } 513 }
514 free (def); 514 GNUNET_free (def);
515 return counter; 515 return counter;
516} 516}
517 517
diff --git a/src/util/os_installation.c b/src/util/os_installation.c
index 2362b160d..b82813d74 100644
--- a/src/util/os_installation.c
+++ b/src/util/os_installation.c
@@ -471,7 +471,7 @@ GNUNET_OS_check_helper_binary (const char *binary)
471 GNUNET_free (p); 471 GNUNET_free (p);
472 p = pf; 472 p = pf;
473 } 473 }
474 free (binaryexe); 474 GNUNET_free (binaryexe);
475#else 475#else
476 p = get_path_from_PATH (binary); 476 p = get_path_from_PATH (binary);
477 if (p != NULL) 477 if (p != NULL)