Fix heap use after free in the doctest "main".
Fix heap use after free in the doctest "main".

Zylann/godot,godotengine/godot,akien-mga/godot,guilhermefelipecgs/godot,MarianoGnu/godot,vnen/godot,akien-mga/godot,Zylann/godot,Valentactive/godot,Valentactive/godot,Zylann/godot,pkowal1982/godot,akien-mga/godot,guilhermefelipecgs/godot,Faless/godot,vnen/godot,DmitriySalnikov/godot,sanikoyes/godot,MarianoGnu/godot,Valentactive/godot,Shockblast/godot,firefly2442/godot,honix/godot,MarianoGnu/godot,guilhermefelipecgs/godot,godotengine/godot,akien-mga/godot,sanikoyes/godot,godotengine/godot,Paulloz/godot,josempans/godot,sanikoyes/godot,Paulloz/godot,Valentactive/godot,guilhermefelipecgs/godot,firefly2442/godot,Shockblast/godot,Paulloz/godot,honix/godot,Shockblast/godot,ZuBsPaCe/godot,BastiaanOlij/godot,Paulloz/godot,pkowal1982/godot,firefly2442/godot,Shockblast/godot,MarianoGnu/godot,MarianoGnu/godot,vkbsb/godot,godotengine/godot,ZuBsPaCe/godot,BastiaanOlij/godot,pkowal1982/godot,josempans/godot,pkowal1982/godot,Shockblast/godot,ZuBsPaCe/godot,Paulloz/godot,guilhermefelipecgs/godot,sanikoyes/godot,godotengine/godot,vkbsb/godot,BastiaanOlij/godot,vkbsb/godot,honix/godot,MarianoGnu/godot,BastiaanOlij/godot,Zylann/godot,BastiaanOlij/godot,Zylann/godot,Faless/godot,vnen/godot,firefly2442/godot,DmitriySalnikov/godot,firefly2442/godot,ZuBsPaCe/godot,vkbsb/godot,josempans/godot,guilhermefelipecgs/godot,Valentactive/godot,firefly2442/godot,DmitriySalnikov/godot,ZuBsPaCe/godot,Paulloz/godot,pkowal1982/godot,akien-mga/godot,Zylann/godot,sanikoyes/godot,Faless/godot,BastiaanOlij/godot,pkowal1982/godot,Shockblast/godot,honix/godot,vnen/godot,DmitriySalnikov/godot,honix/godot,sanikoyes/godot,MarianoGnu/godot,vnen/godot,sanikoyes/godot,pkowal1982/godot,Faless/godot,ZuBsPaCe/godot,Zylann/godot,vkbsb/godot,Shockblast/godot,josempans/godot,godotengine/godot,MarianoGnu/godot,akien-mga/godot,Faless/godot,DmitriySalnikov/godot,vnen/godot,firefly2442/godot,akien-mga/godot,vnen/godot,DmitriySalnikov/godot,Paulloz/godot,godotengine/godot,vkbsb/godot,josempans/godot,vnen/godot,DmitriySalnikov/godot,josempans/godot,Faless/godot,akien-mga/godot,godotengine/godot,josempans/godot,Zylann/godot,BastiaanOlij/godot,honix/godot,sanikoyes/godot,pkowal1982/godot,vkbsb/godot,guilhermefelipecgs/godot,Valentactive/godot,ZuBsPaCe/godot,josempans/godot,guilhermefelipecgs/godot,Valentactive/godot,Faless/godot,Shockblast/godot,Faless/godot,BastiaanOlij/godot,vkbsb/godot,ZuBsPaCe/godot,firefly2442/godot,Valentactive/godot