diff options
author | 2003-02-04 07:38:51 +0000 | |
---|---|---|
committer | 2003-02-04 07:38:51 +0000 | |
commit | 272d0b39125bae949a2951e4c41cfb811e3a60c0 (patch) | |
tree | 11b42886c52557466bcf23e546bba4f83cd9a1a5 | |
parent | Bring qe closer to NetBSD and make it compile. As yet untested. (diff) | |
download | wireguard-openbsd-272d0b39125bae949a2951e4c41cfb811e3a60c0.tar.xz wireguard-openbsd-272d0b39125bae949a2951e4c41cfb811e3a60c0.zip |
free memory if pointer is -not- NULL...
-rw-r--r-- | regress/sys/dev/audio/autest.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/regress/sys/dev/audio/autest.c b/regress/sys/dev/audio/autest.c index 1d8c8792c7e..99b65fcdc4f 100644 --- a/regress/sys/dev/audio/autest.c +++ b/regress/sys/dev/audio/autest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autest.c,v 1.2 2003/02/01 18:09:27 jason Exp $ */ +/* $OpenBSD: autest.c,v 1.3 2003/02/04 07:38:51 jason Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -609,9 +609,9 @@ enc_adpcm_8(int fd, audio_encoding_t *enc, int chans) audio_wait(fd); out: - if (samples == NULL) + if (samples != NULL) free(samples); - if (outbuf == NULL) + if (outbuf != NULL) free(outbuf); } @@ -671,9 +671,9 @@ enc_ulaw_8(int fd, audio_encoding_t *enc, int chans) audio_wait(fd); out: - if (samples == NULL) + if (samples != NULL) free(samples); - if (outbuf == NULL) + if (outbuf != NULL) free(outbuf); } @@ -733,9 +733,9 @@ enc_alaw_8(int fd, audio_encoding_t *enc, int chans) audio_wait(fd); out: - if (samples == NULL) + if (samples != NULL) free(samples); - if (outbuf == NULL) + if (outbuf != NULL) free(outbuf); } |