[kbdlogger] Removed warning 'WARNING: modpost: Found 1 section mismatch(es).'
            Created a new function to handle resource deallocation