parser lyb BUGFIX too large malloc
diff --git a/src/parser_lyb.c b/src/parser_lyb.c
index 25295ef..db68205 100644
--- a/src/parser_lyb.c
+++ b/src/parser_lyb.c
@@ -353,7 +353,7 @@
     }
 
     /* module name */
-    *mod_name = malloc((length + 1) * sizeof *mod_name);
+    *mod_name = malloc(length + 1);
     LY_CHECK_ERR_RET(!*mod_name, LOGMEM(lybctx->ctx), LY_EMEM);
     lyb_read(((uint8_t *)*mod_name), length, lybctx);
     (*mod_name)[length] = '\0';