summaryrefslogtreecommitdiff
path: root/ext/syck/syck.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/syck/syck.c')
-rw-r--r--ext/syck/syck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index df68768fed5..683f4c89994 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -119,7 +119,7 @@ syck_parser_reset_levels( SyckParser *p )
{
p->lvl_idx = 1;
p->levels[0].spaces = -1;
- p->levels[0].domain = ""; // YAML_DOMAIN + "/";
+ p->levels[0].domain = syck_strndup( "", 0 );
p->levels[0].status = syck_lvl_header;
}
}
@@ -220,6 +220,7 @@ syck_free_parser( SyckParser *p )
// Free all else
//
syck_parser_reset_levels( p );
+ S_FREE( p->levels[0].domain );
S_FREE( p->levels );
if ( p->buffer != NULL )