aboutsummaryrefslogtreecommitdiff
path: root/src/rps/rps-test_util.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-06-26 15:00:42 +0200
committerJulius Bünger <buenger@mytum.de>2018-06-26 15:00:42 +0200
commit8790a0dbeae9be48306661f9639931b6cb5d6632 (patch)
treef85df3c8100ed0b799da78ffc51e11c1a0801026 /src/rps/rps-test_util.c
parent52b006735e61d184281b56094758ecdc7355ed84 (diff)
downloadgnunet-8790a0dbeae9be48306661f9639931b6cb5d6632.tar.gz
gnunet-8790a0dbeae9be48306661f9639931b6cb5d6632.zip
fix several memory leaks
Diffstat (limited to 'src/rps/rps-test_util.c')
-rw-r--r--src/rps/rps-test_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rps/rps-test_util.c b/src/rps/rps-test_util.c
index 0ee290e67..d47e4952f 100644
--- a/src/rps/rps-test_util.c
+++ b/src/rps/rps-test_util.c
@@ -352,10 +352,10 @@ create_file (const char *name)
352 if (NULL == strstr (name, "sampler_el")) 352 if (NULL == strstr (name, "sampler_el"))
353 {/* only append random string to sampler */ 353 {/* only append random string to sampler */
354 if (NULL == (file_name = GNUNET_DISK_mktemp (name_buf))) 354 if (NULL == (file_name = GNUNET_DISK_mktemp (name_buf)))
355 LOG (GNUNET_ERROR_TYPE_WARNING, "Could not create file\n"); 355 LOG (GNUNET_ERROR_TYPE_WARNING, "Could not create file\n");
356 356
357 GNUNET_free (name_buf); 357 GNUNET_free (name_buf);
358 return file_name; 358 return file_name;
359 } 359 }
360 360
361 return name_buf; 361 return name_buf;