Skip to content
Permalink
Browse files

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);
                      ^~~~~~~~~~~~~~~
...
  • Loading branch information...
rbuj authored and raveit65 committed Feb 19, 2019
1 parent c9eb7cb commit 333a9e9955e964992e209f731f6e33142824e698
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit 333a9e9

Please sign in to comment.
You can’t perform that action at this time.