make it easier to track memory allocations

Signed-off-by: Mattias Andrée <maandree@operamail.com>
mds-kbdc: fix memory exhaustion bug

Signed-off-by: Mattias Andrée <maandree@operamail.com>
m simplification

Signed-off-by: Mattias Andrée <maandree@operamail.com>