fixed mem leak in StringUtils::FormatV
authorwsoltys <wiso@no.way>
Wed, 2 Oct 2013 19:18:11 +0000 (21:18 +0200)
committerwsoltys <wiso@no.way>
Wed, 2 Oct 2013 19:47:56 +0000 (21:47 +0200)
xbmc/utils/StringUtils.cpp

index a7ed17b..21456bf 100644 (file)
@@ -99,6 +99,7 @@ string StringUtils::FormatV(const char *fmt, va_list args)
     cstr = new_cstr;
   }
 
+  free(cstr);
   return "";
 }