simpletlv: Reuse g_memdup

The effect of g_new+memcpy is the same of a single g_memdup

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
6 jobs for ci2 in 8 minutes and 13 seconds (queued for 1 second)
Status Name Job ID Coverage
  Build
passed Build #954972

00:02:48

passed clang #954973

00:01:52

 
  Test
failed asan #954976
allowed to fail

00:01:12

passed Check #954974

00:05:25

passed csbuild #954977

00:02:24

passed Memcheck #954975

00:01:37

 
Name Stage Failure
failed
asan Test
No job log