Memory leak

Hi !

I have my own program, say A and another one, say B, which contains many memory leaks

My prog A has to call B.
The first solution I used is to use the function system but then, it runs very slow beacause I need to pass parameters by means of text files..
The second solution shoud be to integrate the source code of B into y prog A, but I can't resolve the memory leaks..
Is there any solution tha allow to create a memory zone reserved for the source code B which can be freed when this part is ended, before continuing the code of A ?

Thanks

Sam38
Topic archived. No new replies allowed.