Commit f1a63f1ca8a7e88f9bef55013033b1b9391108e0

Martin Mitas 2017-01-01T16:18:42

md_process_table_row: Fix possible errorneous free() on an error path.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/md4c.c b/md4c/md4c.c
index e82f5ac..f8b5311 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -3690,7 +3690,7 @@ md_process_table_row(MD_CTX* ctx, MD_BLOCKTYPE cell_type, OFF beg, OFF end,
                      const MD_ALIGN* align, int n_align)
 {
     MD_LINE line = { beg, end };
-    OFF* pipe_offs;
+    OFF* pipe_offs = NULL;
     int i, j, n;
     int ret = 0;