cmdline (merge-intel): don't free the cmdline struct in cmdline_interact()
authorOlivier Matz <zer0@droids-corp.org>
Fri, 24 Dec 2010 12:56:30 +0000 (13:56 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Sun, 2 Jan 2011 20:53:15 +0000 (21:53 +0100)
This function is not supposed to free the 'cl' structure, as it may
be reused by cmdline_stdin_exit().

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
src/lib/cmdline.c

index 0035f44..9ad2bbe 100644 (file)
@@ -230,5 +230,4 @@ cmdline_interact(struct cmdline *cl)
                if (cmdline_in(cl, &c, 1) < 0)
                        break;
        }
-       cmdline_free(cl);
 }