From: Mathieu Desnoyers Date: Tue, 7 Feb 2012 03:06:24 +0000 (-0500) Subject: tests: ensure all get random string don't free X-Git-Tag: v2.0-pre20~17 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=07004d4d4d41006536be911aa557fb69b87b4820;p=lttng-tools.git tests: ensure all get random string don't free Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/test_sessions.c b/tests/test_sessions.c index 3e876c889..2adf23325 100644 --- a/tests/test_sessions.c +++ b/tests/test_sessions.c @@ -313,13 +313,11 @@ int main(int argc, char **argv) printf("Creating %d sessions: ", MAX_SESSIONS); fflush(stdout); for (i = 0; i < MAX_SESSIONS; i++) { - tmp_name = get_random_string(); - ret = create_one_session(tmp_name, PATH1); + ret = create_one_session(get_random_string(), PATH1); if (ret < 0) { printf("session %d (name: %s) creation failed\n", i, tmp_name); return -1; } - free(tmp_name); } PRINT_OK();