Valgrind reports memory 'possibly lost' when using glib data types

后端 未结 2 885
日久生厌
日久生厌 2020-12-08 10:31

I\'m developing a library using a number of glib datastructures (GHashTable, GSList etc.). I\'ve been checking my code frequently for memory leaks using valgrind. Most of th

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-08 11:14

    glib-2.12 is quite old.

    Try getting glib-2.24, compile and install it (with --prefix=/usr/local/glib-2.24 for example) then use it to compile your application.

    If you still have this, try to read the glib manual again :)

提交回复
热议问题