The effect of g_new+memcpy is the same of a single g_memdup
Signed-off-by: Frediano Ziglio fziglio@redhat.com