summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2013-02-15 13:51:54 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2013-02-15 13:51:54 +0000
commit2f10c3e258216a4694be7302c4a039b26be832bf (patch)
tree0cc5ddc89809341208b405e0e4b030b820ac614f /buffer.c
parenta1ba2d1ca3a1d6c9c36a79a196dd3ccb83ede353 (diff)
downloadsrc-test2-2f10c3e258216a4694be7302c4a039b26be832bf.tar.gz
src-test2-2f10c3e258216a4694be7302c4a039b26be832bf.zip
Notes
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/buffer.c b/buffer.c
index 5a6b0ba74c85..fc6c17e7a9f3 100644
--- a/buffer.c
+++ b/buffer.c
@@ -140,7 +140,8 @@ ldns_buffer_free(ldns_buffer *buffer)
return;
}
- LDNS_FREE(buffer->_data);
+ if (!buffer->_fixed)
+ LDNS_FREE(buffer->_data);
LDNS_FREE(buffer);
}