From d2740b0ef6c8b7785f575432fb3ae78cdae8f89e Mon Sep 17 00:00:00 2001 From: Ondrej Oprala Date: Mon, 23 Sep 2013 15:39:38 +0200 Subject: hexdump: catch memory leaks Signed-off-by: Ondrej Oprala --- text-utils/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text-utils/parse.c') diff --git a/text-utils/parse.c b/text-utils/parse.c index 7454fe15d..37d2a4c86 100644 --- a/text-utils/parse.c +++ b/text-utils/parse.c @@ -231,7 +231,7 @@ void rewrite(FS *fs) /* Only text in the string. */ if (!*p1) { - pr->fmt = fmtp; + pr->fmt = xstrdup(fmtp); pr->flags = F_TEXT; break; } -- cgit v1.2.3-55-g7522