Commit 480e047c authored by Juan David Gonzalez Cobas's avatar Juan David Gonzalez Cobas Committed by Alessandro Rubini

spec-fmc: fix memory leak

Forgot to deallocate the fmc_device allocated in spec_fmc_create.
Signed-off-by: Juan David González Cobas's avatarJuan David Gonzalez Cobas <dcobas@cern.ch>
parent 77232a24
......@@ -438,5 +438,6 @@ void spec_fmc_destroy(struct spec_dev *spec)
fmc_device_unregister(spec->fmc);
spec_irq_exit(spec->fmc);
spec_i2c_exit(spec->fmc);
kfree(spec->fmc);
spec->fmc = NULL;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment