From 9cea7b90fb34deff24ba49694963cc98e3e05e49 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Wed, 6 Sep 2017 00:03:39 +0100 Subject: Netbyte rpc example lib --- netbytes.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'netbytes.c') diff --git a/netbytes.c b/netbytes.c index 81ba4d0..68a04e3 100644 --- a/netbytes.c +++ b/netbytes.c @@ -651,7 +651,9 @@ int nb_load( netbyte_store *store, uint8_t *data ) break; } default: - printf("Unknown type"); + printf("Unknown type\n"); + //FIX non freed structures, if this happends in middle of transfer + return -1; } if ( c >= data + size ) { -- cgit v1.2.3