Problem with memoryleak in octstr

2004-08-26 Thread Ken A. RedergÄrd
Hi, I'm trying to figure out why the following octstr function leak 1 byte of memory for each iteration: /* test_octstr.c */ #include unistd.h #include gwlib/gwlib.h int main(void) { Octstr *os; int i; gwlib_init(); for (i = 0; i 100; i++) { os = octstr_format(sadfasdfasdfas);

Re: Problem with memoryleak in octstr

2004-08-26 Thread Stipe Tolj
Ken A. RedergÄrd wrote: Hi, I'm trying to figure out why the following octstr function leak 1 byte of memory for each iteration: /* test_octstr.c */ #include unistd.h #include gwlib/gwlib.h int main(void) { Octstr *os; int i; gwlib_init(); for (i = 0; i 100; i++) { os =