diff --git a/src/cr-term.c b/src/cr-term.c
index d6db51a..0173bca 100644
--- a/src/cr-term.c
+++ b/src/cr-term.c
@@ -366,9 +366,9 @@ cr_term_to_string (CRTerm const * a_this)
                                                 tmp_str = NULL;
                                         }
 
-                                        g_free (content);
-                                        content = NULL;
                                 }
+                                g_free (content);
+                                content = NULL;
                                 g_string_append (str_buf, ")");
                         }
 
