go-sqlite3 icon indicating copy to clipboard operation
go-sqlite3 copied to clipboard

Update _example/mod_regexp to remove memory leak in regexp_func

Open Binary-Eater opened this issue 3 years ago • 0 comments

Valgrind report before the change.
==13662== LEAK SUMMARY:
==13662==    definitely lost: 87 bytes in 1 blocks
==13662==    indirectly lost: 0 bytes in 0 blocks
==13662==      possibly lost: 1,152 bytes in 4 blocks
==13662==    still reachable: 0 bytes in 0 blocks
==13662==         suppressed: 0 bytes in 0 blocks
Valgrind report after the change.
==10847== LEAK SUMMARY:
==10847==    definitely lost: 0 bytes in 0 blocks
==10847==    indirectly lost: 0 bytes in 0 blocks
==10847==      possibly lost: 1,152 bytes in 4 blocks
==10847==    still reachable: 0 bytes in 0 blocks
==10847==         suppressed: 0 bytes in 0 blocks

Binary-Eater avatar Mar 18 '22 04:03 Binary-Eater