From b0a90df13560a8b3fc7ef8f7e53008f03c22ad56 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 May 2015 16:33:10 +1000 Subject: [PATCH] DataFlash: fixed double Init of DF object thanks to Michael De Breuil --- libraries/DataFlash/DataFlash_File.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/DataFlash/DataFlash_File.cpp b/libraries/DataFlash/DataFlash_File.cpp index 4316710c71..18f6193e7c 100644 --- a/libraries/DataFlash/DataFlash_File.cpp +++ b/libraries/DataFlash/DataFlash_File.cpp @@ -107,6 +107,7 @@ void DataFlash_File::Init(const struct LogStructure *structure, uint8_t num_type } if (_writebuf != NULL) { free(_writebuf); + _writebuf = NULL; } /*