diff options
author | Ondrej Oprala | 2013-09-23 15:39:38 +0200 |
---|---|---|
committer | Karel Zak | 2013-11-08 14:16:29 +0100 |
commit | d2740b0ef6c8b7785f575432fb3ae78cdae8f89e (patch) | |
tree | c65ba7029a49d819911ceedb0e15d258e4a1d71a /text-utils/parse.c | |
parent | hexdump: make addfile() variable names more hinting of their purpose (diff) | |
download | kernel-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.c | 2 |
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; } |