Avoid freeing potentially uninitialised variable.