summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2020-04-17 20:17:18 -0400
committerGitHub <noreply@github.com>2020-04-17 20:17:18 -0400
commit1be1ca35c7be8a4b0813542fa8df2db2e1bfddfc (patch)
tree7a6e51ca0c477323d245c8986c1db416c2ee8922
parent4110aa2cb342fb0f025746c4b7df7707f69334c5 (diff)
parent193848fff6bc4ce978f531178f54d2b65ff8960f (diff)
Merge pull request #6255 from mjstapp/fix_bitfield_free
lib: clear data pointer in bf_free
-rw-r--r--lib/bitfield.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bitfield.h b/lib/bitfield.h
index eebfc049d9..2d98760df7 100644
--- a/lib/bitfield.h
+++ b/lib/bitfield.h
@@ -154,6 +154,7 @@ typedef unsigned int word_t;
do { \
if ((v).data) { \
free((v).data); \
+ (v).data = NULL; \
} \
} while (0)