[MPlayer-dev-eng] Where to free loose memory?

The Wanderer inverseparadox at comcast.net
Thu Sep 16 20:04:25 CEST 2004


Partly on the offchance that it would be useful and partly as a way to
see and learn the code (in some more comprehensive way than the
skim-over-while-changing-printfs I've done so far), I'm currently
running mplayer inside valgrind in an attempt to track down and fix any
memory leaks and so forth. (There are quite a number reported, but most
seem to be problems in external libraries.) Note that I have no
intention of submitting this work for actual use unless people indicate
that such would be desirable; I'm not at all confident in my skills in
such areas, this is mostly just a way for me to try to learn the code
and get in a bit of practice in the process.

Is there any one canonical place, or group of places, where memory is
supposed to be freed - one of the exit_* functions, perhaps - or should
I just make my best guess as to a place which is after the final use of
the variable in question?

-- 
       The Wanderer is trying to recover from a trough of incompetence

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

A government exists to serve its citizens, not to control them.




More information about the MPlayer-dev-eng mailing list