module: Fix memory leak in spawn_load()
commit30ebd4f6bc83fa4832b658705d4020cb82dfdaea
authorMatt Fleming <matt.fleming@intel.com>
Tue, 27 Nov 2012 16:19:17 +0000 (27 16:19 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 27 Nov 2012 21:09:44 +0000 (27 21:09 +0000)
treef8f5ccb359a899d83ea4847f9eb8bab8ee13962b
parent73bf7c135dfce1d0194de6677ed85495c64e300f
module: Fix memory leak in spawn_load()

If for some reason we fail to load a module then we need to free the
memory allocated to that module.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/lib/sys/module/exec.c