summaryrefslogtreecommitdiff
path: root/src/fr-command-dpkg.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-02-19 19:11:58 +0100
committerraveit65 <[email protected]>2019-02-20 08:40:07 +0100
commit333a9e9955e964992e209f731f6e33142824e698 (patch)
tree8ab71d782ed1d201ceb5311cfea113db217b9130 /src/fr-command-dpkg.c
parentc9eb7cba9796105a4a5196ed7ef5b1ec1f2df27b (diff)
downloadengrampa-333a9e9955e964992e209f731f6e33142824e698.tar.bz2
engrampa-333a9e9955e964992e209f731f6e33142824e698.tar.xz
warning: Use of memory after it is freed
$ scan-build ./configure ... $ scan-build --keep-cc make ... fr-command-dpkg.c:76:23: warning: Use of memory after it is freed fdata->name = g_strdup (name); ^~~~~~~~~~~~~~~ ...
Diffstat (limited to 'src/fr-command-dpkg.c')
-rw-r--r--src/fr-command-dpkg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fr-command-dpkg.c b/src/fr-command-dpkg.c
index 3ce4f99..ab0df4b 100644
--- a/src/fr-command-dpkg.c
+++ b/src/fr-command-dpkg.c
@@ -71,9 +71,9 @@ process_metadata_line (char *line,
fdata->original_path = fdata->full_path + 1;
g_strfreev (fields);
- g_free (name);
fdata->name = g_strdup (name);
+ g_free (name);
fdata->path = g_strdup ("DEBIAN");
fr_command_add_file (comm, fdata);
}