Patch from Hasch@t-online.de (Juergen Hasch) to add allocate and talloc