Bugfix

Added a missing malloc