BUGFIX handle missing \n on a chunk start

Fixes #5
diff --git a/src/io.c b/src/io.c
index 662f9e3..9c9a7c8 100644
--- a/src/io.c
+++ b/src/io.c
@@ -297,6 +297,10 @@
             if (!strcmp(chunk, "#\n")) {
                 /* end of chunked framing message */
                 free(chunk);
+                if (!msg) {
+                    ERR("Session %u: invalid frame chunk delimiters.", session->id);
+                    goto malformed_msg;
+                }
                 break;
             }