config: Fix memory leak in make_byte_array
config: Fix memory leak in make_byte_array

The strdup() was followed by an if-statement that on error would
return without freeing the memory allocated by strdup(). This if-
statement doesn't need the result of strdup() so move the strdup()
to later in the function.

Change-Id: I4c021cb4fb95267a9bd92b4010e113fcdef9d5c0
Signed-off-by: Richard Fitzgerald <22ee0097135072451429b5ac45630d52779cd49b@opensource.cirrus.com>

CirrusLogic/tinyhal,CirrusLogic/tinyhal,CirrusLogic/tinyhal