Memory mangament c++

Hi guys -
planing a head external framework integration in touchdesigner using all realms of operators.
any rules I should take in account like memory management ?
Let touchdesigner to control as much as possible ?
I`m not c++ expert so any general guide lines \ direction and links will be helpful.

thank you,

Barak.