diff options
| author | Scott Long <scottl@FreeBSD.org> | 2004-03-01 21:27:14 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2004-03-01 21:27:14 +0000 |
| commit | d48819053113eae4700da9c7de228835c1273f95 (patch) | |
| tree | 8f9a03c0e8524508919dcb3e1fcd0bfee59a965d /sys/dev/mlx | |
| parent | 6b40af88db343b56abc9656b7d08fe4c39e5f14a (diff) | |
Notes
Diffstat (limited to 'sys/dev/mlx')
| -rw-r--r-- | sys/dev/mlx/mlx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mlx/mlx.c b/sys/dev/mlx/mlx.c index 9070af2b80b1..ea537410e502 100644 --- a/sys/dev/mlx/mlx.c +++ b/sys/dev/mlx/mlx.c @@ -1554,8 +1554,8 @@ mlx_enquire(struct mlx_softc *sc, int command, size_t bufsize, void (* complete) if ((mc->mc_complete == NULL) && (mc != NULL)) mlx_releasecmd(mc); /* we got an error, and we allocated a result */ - if ((error != 0) && (mc->mc_data != NULL)) { - free(mc->mc_data, M_DEVBUF); + if ((error != 0) && (result != NULL)) { + free(result, M_DEVBUF); mc->mc_data = NULL; } return(result); |
