diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-09-22 12:18:28 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-09-22 12:18:28 +0000 |
commit | 8aed35d8952a8ba1e44f6f8cf8e6ff108fc8c66a (patch) | |
tree | 0d2d7e98b716061fe347c10a7671d52d8e2e7611 /src | |
parent | 21776405e593e4b575f431ef3ec9a1137a5a103b (diff) | |
download | anubis-8aed35d8952a8ba1e44f6f8cf8e6ff108fc8c66a.tar.gz anubis-8aed35d8952a8ba1e44f6f8cf8e6ff108fc8c66a.tar.bz2 |
(stream_destroy): Use xfree() for consistency
Diffstat (limited to 'src')
-rw-r--r-- | src/stream.c | 3 |
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; } |