server: Free ptr in console_input_append_hist.


Free ptr in console_input_append_hist before returning, otherwise it
will be leaked (found by Coverity).
Remove the setting of last error on mem_alloc failure, as it is already
done in mem_alloc.
diff --git a/server/console.c b/server/console.c
index 57a5804..120633d 100644
--- a/server/console.c
+++ b/server/console.c
@@ -897,13 +897,12 @@
     WCHAR*	ptr = mem_alloc( (len + 1) * sizeof(WCHAR) );
 
     if (!ptr)
-    {
-	set_error( STATUS_NO_MEMORY );
-	return;
-    }
+        return;
+
     if (!console || !console->history_size)
     {
 	set_error( STATUS_INVALID_PARAMETER ); /* FIXME */
+	free( ptr );
 	return;
     }