Skip to content

Commit

Permalink
fixed a potential memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Heng Li committed Aug 18, 2011
1 parent 06b2441 commit 4add379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kseq.h
Expand Up @@ -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); \
} \
Expand Down

0 comments on commit 4add379

Please sign in to comment.