cdalitz / abctab2ps Goto Github PK
View Code? Open in Web Editor NEWmusic and tablature typesetting program
License: Other
music and tablature typesetting program
License: Other
Using valgrind I noticed some memory leaks when using abctab2ps. E.g.
valgrind ./abctab2ps ../doc/examples/francisque.abc
==22571== Memcheck, a memory error detector
==22571== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==22571== Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyright info
==22571== Command: ./abctab2ps ../doc/examples/francisque.abc
==22571==
This is abctab2ps, version 1.8.25 (Oct 22 2023)
../doc/examples/francisque.abc: [1] Premier Branle de Poitou -
Output written on Out.ps (1 page, 1 title, 72113 bytes)
==22571==
==22571== HEAP SUMMARY:
==22571== in use at exit: 4,081,073 bytes in 999 blocks
==22571== total heap usage: 1,110 allocs, 111 frees, 4,189,722 bytes allocated
==22571==
==22571== LEAK SUMMARY:
==22571== definitely lost: 360 bytes in 15 blocks
==22571== indirectly lost: 0 bytes in 0 blocks
==22571== possibly lost: 0 bytes in 0 blocks
==22571== still reachable: 4,080,713 bytes in 984 blocks
==22571== suppressed: 0 bytes in 0 blocks
==22571== Rerun with --leak-check=full to see details of leaked memory
==22571==
==22571== For lists of detected and suppressed errors, rerun with: -s
==22571== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
For a more complete report
valgrind -s --leak-check=full --show-leak-kinds=all --track-origins=yes ./abctab2ps ../doc/examples/francisque.abc
valgrind-result.txt
The "still reachable" are not important, these are memory blocks allocated but not freed before exiting.
The "definitely lost" are the memory leaks.
I'll prepare a pull request to fix all of these.
I'm using Linux openSUSE 15.5, gcc 7.5.0, valgrind-3.20.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.