summaryrefslogtreecommitdiffstats
path: root/sys/dev/mlx/mlx_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/mlx/mlx_pci.c')
-rw-r--r--sys/dev/mlx/mlx_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mlx/mlx_pci.c b/sys/dev/mlx/mlx_pci.c
index 7e4b01a..da04278e 100644
--- a/sys/dev/mlx/mlx_pci.c
+++ b/sys/dev/mlx/mlx_pci.c
@@ -215,6 +215,7 @@ mlx_pci_attach(device_t dev)
*/
error = mlx_attach(sc);
if (error != 0)
+ mlx_free(sc);
return(error);
/*
OpenPOWER on IntegriCloud