X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffmt_compile.c;h=566f620939018eac7824fe2ae80e49a6ae5d920c;hp=85ed7d74f2032e587ddc76c8a436a8b515729c45;hb=e917512db8efcbf3b5b5baeb64b6d345fd3686db;hpb=b78007de9802005825390bee71dfce2306b42519 diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index 85ed7d7..566f620 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -308,8 +308,8 @@ fmt_compile(char *fstring, struct format **fmt) size_t i; if (format_string) - free(format_string); - format_string = getcpy(fstring); + mh_free0(&format_string); + format_string = mh_xstrdup(fstring); usr_fstring = fstring; /* init the component hash table. */