Skip to content
Snippets Groups Projects
Commit 480e047c authored by Juan David Gonzalez Cobas's avatar Juan David Gonzalez Cobas Committed by Alessandro Rubini
Browse files

spec-fmc: fix memory leak


Forgot to deallocate the fmc_device allocated in spec_fmc_create.

Signed-off-by: default avatarJuan David Gonzalez Cobas <dcobas@cern.ch>
parent 77232a24
No related merge requests found
......@@ -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;
}
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