aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-09-22 12:18:28 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-09-22 12:18:28 +0000
commit8aed35d8952a8ba1e44f6f8cf8e6ff108fc8c66a (patch)
tree0d2d7e98b716061fe347c10a7671d52d8e2e7611 /src
parent21776405e593e4b575f431ef3ec9a1137a5a103b (diff)
downloadanubis-8aed35d8952a8ba1e44f6f8cf8e6ff108fc8c66a.tar.gz
anubis-8aed35d8952a8ba1e44f6f8cf8e6ff108fc8c66a.tar.bz2
(stream_destroy): Use xfree() for consistency
Diffstat (limited to 'src')
-rw-r--r--src/stream.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stream.c b/src/stream.c
index 7f972f9..a9e2f86 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -155,8 +155,7 @@ stream_destroy (struct net_stream **str)
return EINVAL;
if ((*str)->destroy)
(*str)->destroy ((*str)->data);
- free (*str);
- *str = NULL;
+ xfree (*str);
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.