tests: ensure all get random string don't free
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 7 Feb 2012 03:06:24 +0000 (22:06 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 7 Feb 2012 03:06:24 +0000 (22:06 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_sessions.c

index 3e876c88990c15cc1dbb14a9a98be1bfea202ceb..2adf233256eacfd57e568bd0cc3a60d0d744e5d7 100644 (file)
@@ -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();
 
This page took 0.026061 seconds and 4 git commands to generate.