home.social

#popt — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #popt, aggregated by home.social.

  1. Basically #popt is broken if you want to avoid even one-off command line memory leaks.

    revk.uk/2023/04/popt.html

  2. Basically #popt is broken if you want to avoid even one-off command line memory leaks.

    revk.uk/2023/04/popt.html

  3. Basically #popt is broken if you want to avoid even one-off command line memory leaks.

    revk.uk/2023/04/popt.html

  4. Basically #popt is broken if you want to avoid even one-off command line memory leaks.

    revk.uk/2023/04/popt.html

  5. Basically #popt is broken if you want to avoid even one-off command line memory leaks.

    revk.uk/2023/04/popt.html

  6. And my next #C question 🙂

    I use #popt a lot, it is great.

    I always find some memory issue left over when running #valgrind, caused by popt. It is always small and so not something I worried much about.

    I noticed it seems to be that a string argument to my command from popt is in fact malloc'd. I.e. I can free() it without error, and that fixes the valgrind complaint.

    But the man page on popt does not say which things it malloc's.

    Does popt always do it?

  7. And my next #C question 🙂

    I use #popt a lot, it is great.

    I always find some memory issue left over when running #valgrind, caused by popt. It is always small and so not something I worried much about.

    I noticed it seems to be that a string argument to my command from popt is in fact malloc'd. I.e. I can free() it without error, and that fixes the valgrind complaint.

    But the man page on popt does not say which things it malloc's.

    Does popt always do it?

  8. And my next #C question 🙂

    I use #popt a lot, it is great.

    I always find some memory issue left over when running #valgrind, caused by popt. It is always small and so not something I worried much about.

    I noticed it seems to be that a string argument to my command from popt is in fact malloc'd. I.e. I can free() it without error, and that fixes the valgrind complaint.

    But the man page on popt does not say which things it malloc's.

    Does popt always do it?

  9. And my next #C question 🙂

    I use #popt a lot, it is great.

    I always find some memory issue left over when running #valgrind, caused by popt. It is always small and so not something I worried much about.

    I noticed it seems to be that a string argument to my command from popt is in fact malloc'd. I.e. I can free() it without error, and that fixes the valgrind complaint.

    But the man page on popt does not say which things it malloc's.

    Does popt always do it?

  10. And my next #C question 🙂

    I use #popt a lot, it is great.

    I always find some memory issue left over when running #valgrind, caused by popt. It is always small and so not something I worried much about.

    I noticed it seems to be that a string argument to my command from popt is in fact malloc'd. I.e. I can free() it without error, and that fixes the valgrind complaint.

    But the man page on popt does not say which things it malloc's.

    Does popt always do it?