diff --git a/src/text.c b/src/text.c
index 8a6d2ce671fd43bcfd8a895a48d65c13a62ec7f0..3c55c2b9e1bfc161806158fdd7bd14898ed9b173 100644
--- a/src/text.c
+++ b/src/text.c
@@ -339,8 +339,8 @@ void do_indent_marked(ssize_t cols)
 	}
     }
 
-    /* Clean up. */
     if (!unindent)
+	/* Clean up. */
 	free(line_indent);
 
     if (indent_changed) {