From 333a9e9955e964992e209f731f6e33142824e698 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 19 Feb 2019 19:11:58 +0100 Subject: 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); ^~~~~~~~~~~~~~~ ... --- src/fr-command-dpkg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.1