summaryrefslogtreecommitdiffstats
path: root/text-utils/parse.c
diff options
context:
space:
mode:
authorOndrej Oprala2013-09-23 15:39:38 +0200
committerKarel Zak2013-11-08 14:16:29 +0100
commitd2740b0ef6c8b7785f575432fb3ae78cdae8f89e (patch)
treec65ba7029a49d819911ceedb0e15d258e4a1d71a /text-utils/parse.c
parenthexdump: make addfile() variable names more hinting of their purpose (diff)
downloadkernel-qcow2-util-linux-d2740b0ef6c8b7785f575432fb3ae78cdae8f89e.tar.gz
kernel-qcow2-util-linux-d2740b0ef6c8b7785f575432fb3ae78cdae8f89e.tar.xz
kernel-qcow2-util-linux-d2740b0ef6c8b7785f575432fb3ae78cdae8f89e.zip
hexdump: catch memory leaks
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Diffstat (limited to 'text-utils/parse.c')
-rw-r--r--text-utils/parse.c2
1 files changed, 1 insertions, 1 deletions
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;
}