From 95d85c0893fb11be8b6fa4c370baa6a8c2affcb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 22 May 2012 15:22:10 +0200 Subject: eiotas_iota_free: add default clause to switch --- src/lib/eiotas_iota.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/eiotas_iota.c b/src/lib/eiotas_iota.c index 53bbbf8..b750599 100644 --- a/src/lib/eiotas_iota.c +++ b/src/lib/eiotas_iota.c @@ -77,6 +77,9 @@ void eiotas_iota_free(Eiotas_Iota *iota) case EIOTAS_TYPE_BOARD: eiotas_board_free((Eiotas_Board*)iota); break; + default: + CRITICAL("SPANK SPANK: 0x%X type %d is unknown, memory leak",(unsigned int)iota,iota->type); + break; } } -- cgit v1.1-2-g2b99