diff options
Diffstat (limited to 'sys/boot/common/commands.c')
-rw-r--r-- | sys/boot/common/commands.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/boot/common/commands.c b/sys/boot/common/commands.c index 00b93d8..cc75032 100644 --- a/sys/boot/common/commands.c +++ b/sys/boot/common/commands.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: commands.c,v 1.9 1999/01/11 06:41:31 msmith Exp $ + * $Id: commands.c,v 1.10 1999/02/01 06:08:20 jkh Exp $ */ #include <stand.h> @@ -192,8 +192,14 @@ command_help(int argc, char *argv[]) close(hfd); if (!matched) { sprintf(command_errbuf, "no help available for '%s'", topic); + free(topic); + if (subtopic) + free(subtopic); return(CMD_ERROR); } + free(topic); + if (subtopic) + free(subtopic); return(CMD_OK); } |