]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Print the string before freeing it.
authorTim Kientzle <kientzle@gmail.com>
Sun, 17 Jan 2010 22:53:59 +0000 (17:53 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sun, 17 Jan 2010 22:53:59 +0000 (17:53 -0500)
SVN-Revision: 1828

tar/test/main.c

index 78a3f758d1d2f88059d1439c76892793546d5a43..6028d7789a4a7e33652daa8afca5856ad67289ba 100644 (file)
@@ -920,8 +920,8 @@ assertion_file_contains_lines_any_order(const char *file, int line,
        failure_start(file, line, "File doesn't match: %s", pathname);
        for (i = 0; i < expected_count; ++i) {
                if (expected[i] != NULL) {
-                       free(expected[i]);
                        logprintf("  Expected but not present: %s\n", expected[i]);
+                       free(expected[i]);
                }
        }
        for (j = 0; j < actual_count; ++j) {