Fix possible segfault.
Fix possible segfault.

Set variable that is freed to NULL initially.

khorben/pkg,Open343/pkg,en90/pkg,skoef/pkg,en90/pkg,junovitch/pkg,khorben/pkg,junovitch/pkg,khorben/pkg,skoef/pkg,Open343/pkg