perf: Check return value of strdup

The strdup() can return NULL so that the result should be checked.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
1 file changed