From 25431f32a2e75b093b3207c6fce57c7904fc1a96 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 24 Feb 2014 19:38:30 +0100 Subject: DecoderPlugin: free the container_scan() return value with delete[] --- src/db/update/Container.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/db/update') diff --git a/src/db/update/Container.cxx b/src/db/update/Container.cxx index 97cff332f..aedcf42ac 100644 --- a/src/db/update/Container.cxx +++ b/src/db/update/Container.cxx @@ -34,8 +34,6 @@ #include -#include - Directory * UpdateWalk::MakeDirectoryIfModified(Directory &parent, const char *name, const FileInfo &info) @@ -120,7 +118,7 @@ UpdateWalk::UpdateContainerFile(Directory &directory, FormatDefault(update_domain, "added %s/%s", directory.GetPath(), vtrack); - g_free(vtrack); + delete[] vtrack; } if (tnum == 1) { -- cgit v1.2.3