From: Arvin Schnell Date: Tue, 23 Sep 2014 15:23:57 +0000 (+0200) Subject: - fixed resource leak X-Git-Tag: v0.2.5~13^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cdd2ea515881af93c43c34b05aa795c709105ea5;p=thirdparty%2Fsnapper.git - fixed resource leak --- diff --git a/snapper/FileUtils.cc b/snapper/FileUtils.cc index 35d7b839..bd5cf1d7 100644 --- a/snapper/FileUtils.cc +++ b/snapper/FileUtils.cc @@ -405,6 +405,7 @@ namespace snapper name = string(&t[strlen(t) - name.size()]); + free(t); return true; }