Merge branch 'maint'
authorAndre Noll <maan@systemlinux.org>
Thu, 3 Feb 2011 08:15:58 +0000 (09:15 +0100)
committerAndre Noll <maan@systemlinux.org>
Thu, 3 Feb 2011 08:15:58 +0000 (09:15 +0100)
1  2 
command.c

diff --cc command.c
+++ b/command.c
@@@ -458,12 -387,10 +458,10 @@@ int com_help(struct rc4_context *rc4c, 
        }
        /* argument given for help */
        cmd = get_cmd_ptr(argv[1], &handler);
-       if (!cmd) {
-               free(handler);
+       if (!cmd)
                return -E_BAD_CMD;
-       }
        perms = cmd_perms_itohuman(cmd->perms);
 -      ret = send_va_buffer(fd,
 +      ret = rc4_send_va_buffer(rc4c,
                "%s - %s\n\n"
                "handler: %s\n"
                "permissions: %s\n"