Giter VIP home page Giter VIP logo

abctab2ps's People

Contributors

cdalitz avatar paul-bayleaf avatar

Watchers

 avatar

Forkers

paul-bayleaf

abctab2ps's Issues

Memory leaks

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.