libqmi-glib,device: plug leak when allocating new links
==44890== 64 bytes in 4 blocks are definitely lost in loss record 4,011 of 5,965
==44890== at 0x4840B65: calloc (vg_replace_malloc.c:760)
==44890== by 0x508AA61: g_malloc0 (in /usr/lib/libglib-2.0.so.0.6800.1)
==44890== by 0x4A3B21A: device_add_link_ready (qmi-device.c:1857)
==44890== by 0x4EB73D3: ??? (in /usr/lib/libgio-2.0.so.0.6800.1)
==44890== by 0x4EB7408: ??? (in /usr/lib/libgio-2.0.so.0.6800.1)
==44890== by 0x5081F2F: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.6800.1)
==44890== by 0x50D5B58: ??? (in /usr/lib/libglib-2.0.so.0.6800.1)
==44890== by 0x5081592: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.6800.1)
==44890== by 0x15A503: main (main.c:213)
Edited by Aleksander Morgado