trace_kprobes: Fix a memory leak bug and check kstrdup() return value