&gt; Immediately clear pointers after freeing<p>This can be misleading...<p><pre><code>    void foo(char *buf) {
        ...
        free(buf); 
        buf = NULL;
    }

    void bar() {
        char *b = malloc(123);
        foo(b);

        &#x2F;&#x2F; b isn&#x27;t NULL...
    }
</code></pre>
My advice is: always compile and run with AddressSanitizer. Take the time to fix errors&#x2F;leaks as soon as possible.