Don't zero stuff twice
[open-adventure.git] / main.c
diff --git a/main.c b/main.c
index 5f7cd3fe2788d49ac449491d68ddc2ddad590acf..b788c618e65428352c0a5f9be4a619ecb194baaa 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1014,9 +1014,7 @@ static bool do_command()
         listobjects();
 
 L2012:
-        command.verb = 0;
         game.oldobj = command.obj;
-        command.obj = 0;
 
 L2600:
         checkhints();
@@ -1047,6 +1045,7 @@ L2600:
                 return (false);
             if (word_count(input) > 2) {
                 rspeak(TWO_WORDS);
+                free(input);
                 continue;
             }
             if (strcmp(input, "") != 0)