==17592== Memcheck, a memory error detector.
==17592== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==17592== Using LibVEX rev 1854, a library for dynamic binary translation.
==17592== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==17592== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework.
==17592== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==17592== For more details, rerun with: -v
==17592== 
==17595== 
==17595== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 8 from 1)
==17595== malloc/free: in use at exit: 1,156,809 bytes in 11,802 blocks.
==17595== malloc/free: 20,294 allocs, 8,492 frees, 1,899,097 bytes allocated.
==17595== For counts of detected errors, rerun with: -v
==17595== searching for pointers to 11,802 not-freed blocks.
==17595== checked 1,228,808 bytes.
==17595== 
==17595== 292 (52 direct, 240 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 13
==17595==    at 0x4C265AE: malloc (vg_replace_malloc.c:207)
==17595==    by 0x648A58C: nss_parse_service_list (nsswitch.c:547)
==17595==    by 0x648AF96: __nss_database_lookup (nsswitch.c:134)
==17595==    by 0x75EB33F: ???
==17595==    by 0x75EC00E: ???
==17595==    by 0x6438402: getpwnam_r@@GLIBC_2.2.5 (getXXbyYY_r.c:253)
==17595==    by 0x5F1D66B: g_get_any_init_do (gutils.c:1596)
==17595==    by 0x5F1F084: g_get_home_dir (gutils.c:1747)
==17595==    by 0x505A434: ensure_current_registry (gst.c:903)
==17595==    by 0x505BBC5: init_post (gst.c:1100)
==17595==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17595==    by 0x505B35C: gst_init_check (gst.c:432)
==17595==    by 0x505B416: gst_init (gst.c:479)
==17595==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17595== 
==17595== 
==17595== 45,584 bytes in 31 blocks are possibly lost in loss record 10 of 13
==17595==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17595==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17595==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17595==    by 0x5F08456: g_slice_alloc (gslice.c:661)
==17595==    by 0x5F08585: g_slice_alloc0 (gslice.c:833)
==17595==    by 0x53283BF: g_type_create_instance (gtype.c:1654)
==17595==    by 0x530F010: g_param_spec_internal (gparam.c:421)
==17595==    by 0x5311A38: g_param_spec_string (gparamspecs.c:2126)
==17595==    by 0x505DCE2: gst_object_class_init (gstobject.c:206)
==17595==    by 0x53281CC: g_type_class_ref (gtype.c:1989)
==17595==    by 0x505B7B4: init_post (gst.c:992)
==17595==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17595==    by 0x505B35C: gst_init_check (gst.c:432)
==17595==    by 0x505B416: gst_init (gst.c:479)
==17595==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17595== 
==17595== LEAK SUMMARY:
==17595==    definitely lost: 52 bytes in 1 blocks.
==17595==    indirectly lost: 240 bytes in 10 blocks.
==17595==      possibly lost: 45,584 bytes in 31 blocks.
==17595==    still reachable: 1,108,693 bytes in 11,732 blocks.
==17595==         suppressed: 2,240 bytes in 28 blocks.
==17595== Reachable blocks (those to which a pointer was found) are not shown.
==17595== To see them, rerun with: --leak-check=full --show-reachable=yes
** Message: creating element
** Message: created element1 0x7500030
** Message: probing devices
** Message: creating more elements
** Message: created element2 0x7500340
==17592== Invalid write of size 1
==17592==    at 0x4C27BE2: memset (mc_replace_strmem.c:493)
==17592==    by 0x5F0859A: g_slice_alloc0 (string3.h:85)
==17592==    by 0x53283BF: g_type_create_instance (gtype.c:1654)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f0 is 0 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 1
==17592==    at 0x4C27BCC: memset (mc_replace_strmem.c:493)
==17592==    by 0x5F0859A: g_slice_alloc0 (string3.h:85)
==17592==    by 0x53283BF: g_type_create_instance (gtype.c:1654)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f1 is 1 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 1
==17592==    at 0x4C27BD1: memset (mc_replace_strmem.c:493)
==17592==    by 0x5F0859A: g_slice_alloc0 (string3.h:85)
==17592==    by 0x53283BF: g_type_create_instance (gtype.c:1654)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f2 is 2 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 1
==17592==    at 0x4C27BD6: memset (mc_replace_strmem.c:493)
==17592==    by 0x5F0859A: g_slice_alloc0 (string3.h:85)
==17592==    by 0x53283BF: g_type_create_instance (gtype.c:1654)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f3 is 3 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 1
==17592==    at 0x4C27BC8: memset (mc_replace_strmem.c:493)
==17592==    by 0x5F0859A: g_slice_alloc0 (string3.h:85)
==17592==    by 0x53283BF: g_type_create_instance (gtype.c:1654)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f4 is 4 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 4
==17592==    at 0x507541B: gst_element_init (gstelement.c:269)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a28 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x804C125: gst_base_src_init (gstbasesrc.c:385)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8bb0 is 88 bytes inside a block of size 100 free'd
==17592==    at 0x4C252AF: free (vg_replace_malloc.c:323)
==17592==    by 0x6490342: __vasprintf_chk (vasprintf_chk.c:86)
==17592==    by 0x5F1F0EA: g_vasprintf (stdio2.h:199)
==17592==    by 0x5F0BA60: g_strdup_printf (gstrfuncs.c:218)
==17592==    by 0x505D62B: gst_object_set_name (gstobject.c:622)
==17592==    by 0x530BBE7: g_object_constructor (gobject.c:938)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x50BA62E: gst_registry_binary_read_cache (gstregistrybinary.c:997)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 4
==17592==    at 0x804C12C: gst_base_src_init (gstbasesrc.c:387)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a60 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x804C138: gst_base_src_init (gstbasesrc.c:388)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a50 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x804C14C: gst_base_src_init (gstbasesrc.c:389)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a58 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 4
==17592==    at 0x804C15D: gst_base_src_init (gstbasesrc.c:393)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a6c is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 4
==17592==    at 0x804C167: gst_base_src_init (gstbasesrc.c:394)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a70 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x804C364: gst_base_src_init (gstbasesrc.c:421)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a48 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x507421C: gst_element_add_pad (gstelement.c:647)
==17592==    by 0x804C3BC: gst_base_src_init (gstbasesrc.c:423)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f8 is 8 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x5074408: gst_element_add_pad (gstelement.c:671)
==17592==    by 0x804C3BC: gst_base_src_init (gstbasesrc.c:423)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a08 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid read of size 2
==17592==    at 0x5074417: gst_element_add_pad (gstelement.c:672)
==17592==    by 0x804C3BC: gst_base_src_init (gstbasesrc.c:423)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a00 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x507441F: gst_element_add_pad (gstelement.c:671)
==17592==    by 0x804C3BC: gst_base_src_init (gstbasesrc.c:423)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a08 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x507439E: gst_element_add_pad (gstelement.c:681)
==17592==    by 0x804C3BC: gst_base_src_init (gstbasesrc.c:423)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f8 is 8 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid read of size 4
==17592==    at 0x50743AD: gst_element_add_pad (gstelement.c:683)
==17592==    by 0x804C3BC: gst_base_src_init (gstbasesrc.c:423)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a20 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid read of size 2
==17592==    at 0x50743B4: gst_element_add_pad (gstelement.c:682)
==17592==    by 0x804C3BC: gst_base_src_init (gstbasesrc.c:423)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f0 is 0 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x50743BF: gst_element_add_pad (gstelement.c:681)
==17592==    by 0x804C3BC: gst_base_src_init (gstbasesrc.c:423)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f8 is 8 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 4
==17592==    at 0x804C3BD: gst_base_src_init (gstbasesrc.c:425)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a68 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x804C3C7: gst_base_src_init (gstbasesrc.c:426)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a80 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 4
==17592==    at 0x509DBEF: gst_segment_init (gstsegment.c:173)
==17592==    by 0x804C3DE: gst_base_src_init (gstbasesrc.c:428)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8aa0 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 4
==17592==    at 0x509DBF2: gst_segment_init (gstsegment.c:174)
==17592==    by 0x804C3DE: gst_base_src_init (gstbasesrc.c:428)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8aa4 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DBF9: gst_segment_init (gstsegment.c:170)
==17592==    by 0x804C3DE: gst_base_src_init (gstbasesrc.c:428)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a90 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DBFC: gst_segment_init (gstsegment.c:171)
==17592==    by 0x804C3DE: gst_base_src_init (gstbasesrc.c:428)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a98 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC00: gst_segment_init (gstsegment.c:172)
==17592==    by 0x804C3DE: gst_base_src_init (gstbasesrc.c:428)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ad8 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC04: gst_segment_init (gstsegment.c:175)
==17592==    by 0x804C3DE: gst_base_src_init (gstbasesrc.c:428)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8aa8 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC0C: gst_segment_init (gstsegment.c:176)
==17592==    by 0x804C3DE: gst_base_src_init (gstbasesrc.c:428)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ab0 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC14: gst_segment_init (gstsegment.c:177)
==17592==    by 0x804C3DE: gst_base_src_init (gstbasesrc.c:428)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ab8 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC1C: gst_segment_init (gstsegment.c:178)
==17592==    by 0x804C3DE: gst_base_src_init (gstbasesrc.c:428)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ac0 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC24: gst_segment_init (gstsegment.c:179)
==17592==    by 0x804C3DE: gst_base_src_init (gstbasesrc.c:428)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ac8 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC2C: gst_segment_init (gstsegment.c:180)
==17592==    by 0x804C3DE: gst_base_src_init (gstbasesrc.c:428)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ad0 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x804C3DF: gst_base_src_init (gstbasesrc.c:430)
==17592==    by 0x5328558: g_type_create_instance (gtype.c:1666)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8bb0 is 88 bytes inside a block of size 100 free'd
==17592==    at 0x4C252AF: free (vg_replace_malloc.c:323)
==17592==    by 0x6490342: __vasprintf_chk (vasprintf_chk.c:86)
==17592==    by 0x5F1F0EA: g_vasprintf (stdio2.h:199)
==17592==    by 0x5F0BA60: g_strdup_printf (gstrfuncs.c:218)
==17592==    by 0x505D62B: gst_object_set_name (gstobject.c:622)
==17592==    by 0x530BBE7: g_object_constructor (gobject.c:938)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x50BA62E: gst_registry_binary_read_cache (gstregistrybinary.c:997)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x7E29826: gst_v4l2src_init (gstv4l2src.c:328)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8bd8 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x7E29837: gst_v4l2src_init (gstv4l2src.c:336)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8bf0 is 16 bytes before a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 4
==17592==    at 0x509DBEF: gst_segment_init (gstsegment.c:173)
==17592==    by 0x7E29868: gst_v4l2src_init (gstv4l2src.c:340)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8aa0 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 4
==17592==    at 0x509DBF2: gst_segment_init (gstsegment.c:174)
==17592==    by 0x7E29868: gst_v4l2src_init (gstv4l2src.c:340)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8aa4 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DBF9: gst_segment_init (gstsegment.c:170)
==17592==    by 0x7E29868: gst_v4l2src_init (gstv4l2src.c:340)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a90 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DBFC: gst_segment_init (gstsegment.c:171)
==17592==    by 0x7E29868: gst_v4l2src_init (gstv4l2src.c:340)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a98 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC00: gst_segment_init (gstsegment.c:172)
==17592==    by 0x7E29868: gst_v4l2src_init (gstv4l2src.c:340)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ad8 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC04: gst_segment_init (gstsegment.c:175)
==17592==    by 0x7E29868: gst_v4l2src_init (gstv4l2src.c:340)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8aa8 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC0C: gst_segment_init (gstsegment.c:176)
==17592==    by 0x7E29868: gst_v4l2src_init (gstv4l2src.c:340)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ab0 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC14: gst_segment_init (gstsegment.c:177)
==17592==    by 0x7E29868: gst_v4l2src_init (gstv4l2src.c:340)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ab8 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC1C: gst_segment_init (gstsegment.c:178)
==17592==    by 0x7E29868: gst_v4l2src_init (gstv4l2src.c:340)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ac0 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC24: gst_segment_init (gstsegment.c:179)
==17592==    by 0x7E29868: gst_v4l2src_init (gstv4l2src.c:340)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ac8 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x509DC2C: gst_segment_init (gstsegment.c:180)
==17592==    by 0x7E29868: gst_v4l2src_init (gstv4l2src.c:340)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8ad0 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 4
==17592==    at 0x804BA5F: gst_base_src_set_live (gstbasesrc.c:510)
==17592==    by 0x7E29885: gst_v4l2src_init (gstv4l2src.c:341)
==17592==    by 0x5328777: g_type_create_instance (gtype.c:1674)
==17592==    by 0x530BB3A: g_object_constructor (gobject.c:1328)
==17592==    by 0x530C1AF: g_object_newv (gobject.c:1205)
==17592==    by 0x530CD26: g_object_new_valist (gobject.c:1268)
==17592==    by 0x530CE6B: g_object_new (gobject.c:1050)
==17592==    by 0x5077533: gst_element_factory_create (gstelementfactory.c:405)
==17592==    by 0x5077DDE: gst_element_factory_make (gstelementfactory.c:474)
==17592==    by 0x4009CF: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a60 is not stack'd, malloc'd or (recently) free'd
** Message: created element3 0x72a8960
** Message: freeing element3
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x7E2ADF4: gst_v4l2src_dispose (gstv4l2src.c:353)
==17592==    by 0x5308331: g_object_unref (gobject.c:2383)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8bf0 is 16 bytes before a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x5076954: gst_element_dispose (gstelement.c:2730)
==17592==    by 0x5308331: g_object_unref (gobject.c:2383)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f8 is 8 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x5074038: gst_element_remove_pad (gstelement.c:782)
==17592==    by 0x5076953: gst_element_dispose (gstelement.c:2732)
==17592==    by 0x5308331: g_object_unref (gobject.c:2383)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a08 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid read of size 2
==17592==    at 0x5074047: gst_element_remove_pad (gstelement.c:783)
==17592==    by 0x5076953: gst_element_dispose (gstelement.c:2732)
==17592==    by 0x5308331: g_object_unref (gobject.c:2383)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a00 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x5074050: gst_element_remove_pad (gstelement.c:782)
==17592==    by 0x5076953: gst_element_dispose (gstelement.c:2732)
==17592==    by 0x5308331: g_object_unref (gobject.c:2383)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a08 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x5073FA0: gst_element_remove_pad (gstelement.c:793)
==17592==    by 0x5076953: gst_element_dispose (gstelement.c:2732)
==17592==    by 0x5308331: g_object_unref (gobject.c:2383)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f8 is 8 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid read of size 4
==17592==    at 0x5073FAF: gst_element_remove_pad (gstelement.c:795)
==17592==    by 0x5076953: gst_element_dispose (gstelement.c:2732)
==17592==    by 0x5308331: g_object_unref (gobject.c:2383)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a20 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid read of size 2
==17592==    at 0x5073FB6: gst_element_remove_pad (gstelement.c:794)
==17592==    by 0x5076953: gst_element_dispose (gstelement.c:2732)
==17592==    by 0x5308331: g_object_unref (gobject.c:2383)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f0 is 0 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 8
==17592==    at 0x5073FC1: gst_element_remove_pad (gstelement.c:793)
==17592==    by 0x5076953: gst_element_dispose (gstelement.c:2732)
==17592==    by 0x5308331: g_object_unref (gobject.c:2383)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f8 is 8 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x7E297C4: gst_v4l2src_finalize (gstv4l2src.c:364)
==17592==    by 0x53083A7: g_object_unref (gobject.c:2411)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8bd8 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x8050A77: gst_base_src_finalize (gstbasesrc.c:445)
==17592==    by 0x53083A7: g_object_unref (gobject.c:2411)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a50 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x8050A89: gst_base_src_finalize (gstbasesrc.c:446)
==17592==    by 0x53083A7: g_object_unref (gobject.c:2411)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a8a58 is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Invalid write of size 1
==17592==    at 0x4C27BE2: memset (mc_replace_strmem.c:493)
==17592==    by 0x5327153: g_type_free_instance (string3.h:85)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f0 is 0 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 1
==17592==    at 0x4C27BCC: memset (mc_replace_strmem.c:493)
==17592==    by 0x5327153: g_type_free_instance (string3.h:85)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f1 is 1 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 1
==17592==    at 0x4C27BD1: memset (mc_replace_strmem.c:493)
==17592==    by 0x5327153: g_type_free_instance (string3.h:85)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f2 is 2 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 1
==17592==    at 0x4C27BD6: memset (mc_replace_strmem.c:493)
==17592==    by 0x5327153: g_type_free_instance (string3.h:85)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f3 is 3 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== Invalid write of size 1
==17592==    at 0x4C27BC8: memset (mc_replace_strmem.c:493)
==17592==    by 0x5327153: g_type_free_instance (string3.h:85)
==17592==    by 0x400A12: main (in /home/mai/gst-test/a.out)
==17592==  Address 0x72a89f4 is 4 bytes after a block of size 496 alloc'd
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08492: g_slice_alloc (gslice.c:666)
==17592==    by 0x5EDC4A9: g_hash_table_insert_internal (ghash.c:762)
==17592==    by 0x509BBCF: gst_registry_add_feature (gstregistry.c:459)
==17592==    by 0x50BA4CB: gst_registry_binary_read_cache (gstregistrybinary.c:962)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
** Message: freeing element2
** Message: freeing element1
==17592== 
==17592== Invalid read of size 8
==17592==    at 0x5073DC5: gst_element_remove_pad (gstelement.c:754)
==17592==    by 0x5076953: gst_element_dispose (gstelement.c:2732)
==17592==    by 0x5308331: g_object_unref (gobject.c:2383)
==17592==    by 0x400A56: main (in /home/mai/gst-test/a.out)
==17592==  Address 0xaaaaaaaaaaaaaaaa is not stack'd, malloc'd or (recently) free'd
==17592== 
==17592== Process terminating with default action of signal 11 (SIGSEGV)
==17592==  General Protection Fault
==17592==    at 0x5073DC5: gst_element_remove_pad (gstelement.c:754)
==17592==    by 0x5076953: gst_element_dispose (gstelement.c:2732)
==17592==    by 0x5308331: g_object_unref (gobject.c:2383)
==17592==    by 0x400A56: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== ERROR SUMMARY: 1040 errors from 67 contexts (suppressed: 14 from 1)
==17592== malloc/free: in use at exit: 1,194,280 bytes in 12,078 blocks.
==17592== malloc/free: 21,094 allocs, 9,016 frees, 2,219,024 bytes allocated.
==17592== For counts of detected errors, rerun with: -v
==17592== searching for pointers to 12,078 not-freed blocks.
==17592== checked 1,263,528 bytes.
==17592== 
==17592== 
==17592== 14 bytes in 1 blocks are definitely lost in loss record 2 of 22
==17592==    at 0x4C265AE: malloc (vg_replace_malloc.c:207)
==17592==    by 0x5EF25E2: g_malloc (gmem.c:131)
==17592==    by 0x5F0A44D: g_strdup (gstrfuncs.c:92)
==17592==    by 0x5077239: __gst_element_factory_add_interface (gstelementfactory.c:622)
==17592==    by 0x50BB370: gst_registry_binary_read_cache (gstregistrybinary.c:913)
==17592==    by 0x505A024: ensure_current_registry (gst.c:913)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== 
==17592== 292 (52 direct, 240 indirect) bytes in 1 blocks are definitely lost in loss record 6 of 22
==17592==    at 0x4C265AE: malloc (vg_replace_malloc.c:207)
==17592==    by 0x648A58C: nss_parse_service_list (nsswitch.c:547)
==17592==    by 0x648AF96: __nss_database_lookup (nsswitch.c:134)
==17592==    by 0x75EB33F: ???
==17592==    by 0x75EC00E: ???
==17592==    by 0x6438402: getpwnam_r@@GLIBC_2.2.5 (getXXbyYY_r.c:253)
==17592==    by 0x5F1D66B: g_get_any_init_do (gutils.c:1596)
==17592==    by 0x5F1F084: g_get_home_dir (gutils.c:1747)
==17592==    by 0x505A434: ensure_current_registry (gst.c:903)
==17592==    by 0x505BBC5: init_post (gst.c:1100)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== 
==17592== 53,760 bytes in 32 blocks are possibly lost in loss record 19 of 22
==17592==    at 0x4C241D0: memalign (vg_replace_malloc.c:460)
==17592==    by 0x4C2428A: posix_memalign (vg_replace_malloc.c:569)
==17592==    by 0x5F072C0: slab_allocator_alloc_chunk (gslice.c:1136)
==17592==    by 0x5F08456: g_slice_alloc (gslice.c:661)
==17592==    by 0x5F08585: g_slice_alloc0 (gslice.c:833)
==17592==    by 0x53283BF: g_type_create_instance (gtype.c:1654)
==17592==    by 0x530F010: g_param_spec_internal (gparam.c:421)
==17592==    by 0x5311A38: g_param_spec_string (gparamspecs.c:2126)
==17592==    by 0x505DCE2: gst_object_class_init (gstobject.c:206)
==17592==    by 0x53281CC: g_type_class_ref (gtype.c:1989)
==17592==    by 0x505B7B4: init_post (gst.c:992)
==17592==    by 0x5EF8A77: g_option_context_parse (goption.c:1796)
==17592==    by 0x505B35C: gst_init_check (gst.c:432)
==17592==    by 0x505B416: gst_init (gst.c:479)
==17592==    by 0x4008F7: main (in /home/mai/gst-test/a.out)
==17592== 
==17592== LEAK SUMMARY:
==17592==    definitely lost: 66 bytes in 2 blocks.
==17592==    indirectly lost: 240 bytes in 10 blocks.
==17592==      possibly lost: 53,760 bytes in 32 blocks.
==17592==    still reachable: 1,137,974 bytes in 12,006 blocks.
==17592==         suppressed: 2,240 bytes in 28 blocks.
==17592== Reachable blocks (those to which a pointer was found) are not shown.
==17592== To see them, rerun with: --leak-check=full --show-reachable=yes
