md_build_attr_append_substr: Fix leak on an error path (CID 1389262).
diff --git a/md4c/md4c.c b/md4c/md4c.c
index fcb88a8..a7b0491 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -1359,6 +1359,7 @@ md_build_attr_append_substr(MD_CTX* ctx, MD_ATTRIBUTE_BUILD* build,
build->substr_alloc * sizeof(OFF));
if(new_substr_offsets == NULL) {
MD_LOG("realloc() failed.");
+ free(new_substr_types);
return -1;
}