Liste des Groupes | Revenir à cl c |
The first leak in the detailed report is this:
>
==18005== 5 bytes in 1 blocks are definitely lost in loss record 1 of 25
==18005== at 0x48407B4: malloc (vg_replace_malloc.c:381)
==18005== by 0x49E38E9: strdup (strdup.c:42)
==18005== by 0x10CAD4: vec_str_tests (vec_str_test.c:77)
==18005== by 0x109346: main (cx_test.c:26)
>
vec_str_test.c:77 is:
>
vec_str_insert(&v1, 4, strdup("beta"));
>
The reason I use strdup() is because my VecStr type takes ownership of
the strings it holds.
Les messages affichés proviennent d'usenet.