summaryrefslogtreecommitdiff
path: root/robot/errcatch.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-16 09:43:32 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-16 09:43:32 +0200
commit2811447fb6c42b72c04abfc557edf270d4936a97 (patch)
treebcf232203be3dc78ad4564a65b48edde63af259c /robot/errcatch.h
parent7bc7d42328e25a98593be9f40fae11684b977726 (diff)
fix memory leak in error handling module
Diffstat (limited to 'robot/errcatch.h')
-rw-r--r--robot/errcatch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/robot/errcatch.h b/robot/errcatch.h
index 2297886..fa7a15b 100644
--- a/robot/errcatch.h
+++ b/robot/errcatch.h
@@ -17,7 +17,7 @@ typedef struct {
} w2_s_error;
/** error ring buffer */
-extern w2_s_error g_w2_error_buffer[W2_ERROR_BUFFER_SIZE];
+extern w2_s_error *g_w2_error_buffer[W2_ERROR_BUFFER_SIZE];
/** stores head of ring buffer */
extern uint8_t g_w2_error_index;
/** stores start of ring buffer */