Abort if make_var cannot allocate memory with malloc
There are two calls to malloc in this function. Previously, just the first checked for an error. This change adds a similar check to the second call.
There are two calls to malloc in this function. Previously, just the first checked for an error. This change adds a similar check to the second call.