==5312== Memcheck, a memory error detector
==5312== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==5312== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==5312== Command: /home/sbron/usr/bin/tclsh8.6 ./hv
==5312== 
==5312== Invalid read of size 8
==5312==    at 0x77E696A: DestroyMenuEntry (tkMenu.c:1423)
==5312==    by 0x54DB0F: Tcl_EventuallyFree (tclPreserve.c:296)
==5312==    by 0x77EA942: DeleteMenuCloneEntries (tkMenu.c:3496)
==5312==    by 0x77E554D: MenuWidgetObjCmd (tkMenu.c:760)
==5312==    by 0x416E12: Dispatch (tclBasic.c:4359)
==5312==    by 0x416E9A: TclNRRunCallbacks (tclBasic.c:4392)
==5312==    by 0x419801: TclEvalObjEx (tclBasic.c:5958)
==5312==    by 0x41979A: Tcl_EvalObjEx (tclBasic.c:5939)
==5312==    by 0x786785B: ButtonInvokeCommand (ttkButton.c:353)
==5312==    by 0x78865B0: Ttk_InvokeEnsemble (ttkTheme.c:1693)
==5312==    by 0x788EB2E: WidgetInstanceObjCmd (ttkWidget.c:161)
==5312==    by 0x416E12: Dispatch (tclBasic.c:4359)
==5312==  Address 0xc068620 is 0 bytes inside a block of size 32 free'd
==5312==    at 0x4C28ADC: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==5312==    by 0x5B76F7: TclpFree (tclAlloc.c:722)
==5312==    by 0x4239F5: Tcl_Free (tclCkalloc.c:1222)
==5312==    by 0x77EA8C5: TkFreeMenuReferences (tkMenu.c:3459)
==5312==    by 0x77E67FF: UnhookCascadeEntry (tkMenu.c:1333)
==5312==    by 0x77E695E: DestroyMenuEntry (tkMenu.c:1421)
==5312==    by 0x54DB0F: Tcl_EventuallyFree (tclPreserve.c:296)
==5312==    by 0x77EA942: DeleteMenuCloneEntries (tkMenu.c:3496)
==5312==    by 0x77E554D: MenuWidgetObjCmd (tkMenu.c:760)
==5312==    by 0x416E12: Dispatch (tclBasic.c:4359)
==5312==    by 0x416E9A: TclNRRunCallbacks (tclBasic.c:4392)
==5312==    by 0x419801: TclEvalObjEx (tclBasic.c:5958)
==5312== 
==5312== Invalid write of size 8
==5312==    at 0x77E6977: DestroyMenuEntry (tkMenu.c:1424)
==5312==    by 0x54DB0F: Tcl_EventuallyFree (tclPreserve.c:296)
==5312==    by 0x77EA942: DeleteMenuCloneEntries (tkMenu.c:3496)
==5312==    by 0x77E554D: MenuWidgetObjCmd (tkMenu.c:760)
==5312==    by 0x416E12: Dispatch (tclBasic.c:4359)
==5312==    by 0x416E9A: TclNRRunCallbacks (tclBasic.c:4392)
==5312==    by 0x419801: TclEvalObjEx (tclBasic.c:5958)
==5312==    by 0x41979A: Tcl_EvalObjEx (tclBasic.c:5939)
==5312==    by 0x786785B: ButtonInvokeCommand (ttkButton.c:353)
==5312==    by 0x78865B0: Ttk_InvokeEnsemble (ttkTheme.c:1693)
==5312==    by 0x788EB2E: WidgetInstanceObjCmd (ttkWidget.c:161)
==5312==    by 0x416E12: Dispatch (tclBasic.c:4359)
==5312==  Address 0xc068620 is 0 bytes inside a block of size 32 free'd
==5312==    at 0x4C28ADC: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==5312==    by 0x5B76F7: TclpFree (tclAlloc.c:722)
==5312==    by 0x4239F5: Tcl_Free (tclCkalloc.c:1222)
==5312==    by 0x77EA8C5: TkFreeMenuReferences (tkMenu.c:3459)
==5312==    by 0x77E67FF: UnhookCascadeEntry (tkMenu.c:1333)
==5312==    by 0x77E695E: DestroyMenuEntry (tkMenu.c:1421)
==5312==    by 0x54DB0F: Tcl_EventuallyFree (tclPreserve.c:296)
==5312==    by 0x77EA942: DeleteMenuCloneEntries (tkMenu.c:3496)
==5312==    by 0x77E554D: MenuWidgetObjCmd (tkMenu.c:760)
==5312==    by 0x416E12: Dispatch (tclBasic.c:4359)
==5312==    by 0x416E9A: TclNRRunCallbacks (tclBasic.c:4392)
==5312==    by 0x419801: TclEvalObjEx (tclBasic.c:5958)
==5312== 
==5312== 
==5312== HEAP SUMMARY:
==5312==     in use at exit: 16,431,163 bytes in 291,709 blocks
==5312==   total heap usage: 2,660,166 allocs, 2,368,457 frees, 242,668,264 bytes allocated
==5312== 
==5312== LEAK SUMMARY:
==5312==    definitely lost: 5,513 bytes in 61 blocks
==5312==    indirectly lost: 4,859 bytes in 188 blocks
==5312==      possibly lost: 8,281,635 bytes in 206,816 blocks
==5312==    still reachable: 8,139,156 bytes in 84,644 blocks
==5312==         suppressed: 0 bytes in 0 blocks
==5312== Rerun with --leak-check=full to see details of leaked memory
==5312== 
==5312== For counts of detected and suppressed errors, rerun with: -v
==5312== ERROR SUMMARY: 4 errors from 2 contexts (suppressed: 2 from 2)
