summaryrefslogtreecommitdiff
path: root/src/common/packed.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-10-27 22:33:11 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-10-27 23:10:41 (GMT)
commit609c184c3edb350a0da7fe29bf449a7189080c92 (patch)
tree4ddd6320ee58a6169cad377f9889a08298fbec47 /src/common/packed.c
parentd0547bc36bd6ccb84eff128fc6e4f2df034a705a (diff)
Implemented snapshot related management features.
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
+
}