소스 검색

Fixed minor memory leak.

default 1 년 전
부모
커밋
f23d2c05ab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      format.c

+ 1 - 1
format.c

@@ -137,7 +137,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach)
 
         if (in_pre) {
             // Encode all HTML characters when we're in pre element until we are out.
-            ss = encode_html(xs_dup(v));
+            ss = encode_html(v);
 
             s = xs_str_cat(s, ss);
             s = xs_str_cat(s, "<br>");