4 ms·
The "if (temp) free(temp);" line made me chuckle.
by DominikD 12y ago
The "if (temp) free(temp);" line made me chuckle.
- davidshepherd7 12y agoCan I ask why? Is it bad style? (I'm fairly new to C)
- thedufer 12y agoI'm late to the party here, but `free` is a no-op on a null pointer. So checking for null is just duplicating the first thing `free` does.