summaryrefslogtreecommitdiff
path: root/src/common/packed.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/packed.c')
-rw-r--r--src/common/packed.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/packed.c b/src/common/packed.c
index a10155d..0c4a222 100644
--- a/src/common/packed.c
+++ b/src/common/packed.c
@@ -97,8 +97,16 @@ void reset_packed_buffer(packed_buffer *pbuf)
void exit_packed_buffer(packed_buffer *pbuf)
{
+#ifndef NDEBUG
+ assert(pbuf->data != NULL);
+#endif
+
free(pbuf->data);
+#ifndef NDEBUG
+ pbuf->data = NULL;
+#endif
+
}