[PATCH 2/2] genl: Convert l_malloc + memcpy to use l_memdup