From: Heng Li Date: Thu, 18 Aug 2011 15:57:54 +0000 (-0400) Subject: fixed a potential memory leak X-Git-Tag: ksprintf-final~10 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=4add379a8b869c7d5e6a1833f1757ee3fcfff5f0;p=klib.git fixed a potential memory leak --- diff --git a/kseq.h b/kseq.h index 41154d8..c4ebfd3 100644 --- a/kseq.h +++ b/kseq.h @@ -126,7 +126,7 @@ typedef struct __kstring_t { break; \ } \ } \ - if (str->l == 0) { \ + if (str->s == 0) { \ str->m = 1; \ str->s = (char*)calloc(1, 1); \ } \