diff --git a/libc3/buf_parse.c b/libc3/buf_parse.c
index 4a49795..ecc76b6 100644
--- a/libc3/buf_parse.c
+++ b/libc3/buf_parse.c
@@ -2007,6 +2007,7 @@ sw buf_parse_map_key_sym (s_buf *buf, s_tag *dest)
r = result;
goto clean;
restore:
+ str_clean(&str);
buf_save_restore_rpos(buf, &save);
clean:
buf_save_clean(buf, &save);