|
|
|
|
|
by tandr
529 days ago
|
|
As a last code snippet readability suggestion - maybe extract "malloc" and "free" calls to your own simple wrappers (like my_malloc and my_free), and do "valgrinding" inside of them? You can also pass additional params to these functions to specify type of allocation if needed, or make separate functions. |
|
This is my first time using valgrind, however, so I might just be confused about what you mean, and there is a simpler way of doing all this.