diff options
author | LRN <lrn1986@gmail.com> | 2015-01-24 23:01:29 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2015-01-24 23:01:29 +0000 |
commit | f530fd6ab2ab7743f975d8d1abbdeeb012e06079 (patch) | |
tree | 5933bdd6b23c521b7b3dfd2799f9eeeded519fcf /src/util | |
parent | b321893de2f2dddd32a3fe2d727593c71a4875f3 (diff) | |
download | gnunet-f530fd6ab2ab7743f975d8d1abbdeeb012e06079.tar.gz gnunet-f530fd6ab2ab7743f975d8d1abbdeeb012e06079.zip |
Fix the use of (GNUNET_)strdup and (GNUNET_)free
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/helper.c | 2 | ||||
-rw-r--r-- | src/util/test_plugin.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/helper.c b/src/util/helper.c index 6dd417a91..3ff72c329 100644 --- a/src/util/helper.c +++ b/src/util/helper.c | |||
@@ -498,7 +498,7 @@ GNUNET_HELPER_start (int with_control_pipe, | |||
498 | if (NULL != strstr (binary_name, "gnunet")) | 498 | if (NULL != strstr (binary_name, "gnunet")) |
499 | h->binary_name = GNUNET_OS_get_libexec_binary_path (binary_name); | 499 | h->binary_name = GNUNET_OS_get_libexec_binary_path (binary_name); |
500 | else | 500 | else |
501 | h->binary_name = strdup (binary_name); | 501 | h->binary_name = GNUNET_strdup (binary_name); |
502 | for (c = 0; NULL != binary_argv[c]; c++); | 502 | for (c = 0; NULL != binary_argv[c]; c++); |
503 | h->binary_argv = GNUNET_malloc (sizeof (char *) * (c + 1)); | 503 | h->binary_argv = GNUNET_malloc (sizeof (char *) * (c + 1)); |
504 | for (c = 0; NULL != binary_argv[c]; c++) | 504 | for (c = 0; NULL != binary_argv[c]; c++) |
diff --git a/src/util/test_plugin.c b/src/util/test_plugin.c index 135447da8..02aa6c038 100644 --- a/src/util/test_plugin.c +++ b/src/util/test_plugin.c | |||
@@ -35,7 +35,7 @@ test_cb (void *cls, const char *libname, void *lib_ret) | |||
35 | ret = GNUNET_PLUGIN_unload (libname, "out"); | 35 | ret = GNUNET_PLUGIN_unload (libname, "out"); |
36 | GNUNET_assert (NULL != ret); | 36 | GNUNET_assert (NULL != ret); |
37 | GNUNET_assert (0 == strcmp (ret, "World")); | 37 | GNUNET_assert (0 == strcmp (ret, "World")); |
38 | GNUNET_free (ret); | 38 | free (ret); |
39 | } | 39 | } |
40 | 40 | ||
41 | 41 | ||