Skip to content

Instantly share code, notes, and snippets.

@ncopa
Created November 13, 2014 13:38
Show Gist options
  • Save ncopa/a97565b0a6b757731438 to your computer and use it in GitHub Desktop.
Save ncopa/a97565b0a6b757731438 to your computer and use it in GitHub Desktop.
ncopa@ncopa-xubuntu:~/lua-mosquitto$ cat testsec.lua
s = require('ssl')
ncopa@ncopa-xubuntu:~/lua-mosquitto$ valgrind lua5.1 testsec.lua
==24718== Memcheck, a memory error detector
==24718== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==24718== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==24718== Command: lua5.1 testsec.lua
==24718==
==24718==
==24718== HEAP SUMMARY:
==24718== in use at exit: 91,240 bytes in 3,065 blocks
==24718== total heap usage: 4,201 allocs, 1,136 frees, 252,299 bytes allocated
==24718==
==24718== LEAK SUMMARY:
==24718== definitely lost: 384 bytes in 3 blocks
==24718== indirectly lost: 90,856 bytes in 3,062 blocks
==24718== possibly lost: 0 bytes in 0 blocks
==24718== still reachable: 0 bytes in 0 blocks
==24718== suppressed: 0 bytes in 0 blocks
==24718== Rerun with --leak-check=full to see details of leaked memory
==24718==
==24718== For counts of detected and suppressed errors, rerun with: -v
==24718== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment