[gnome-builder] beautifier: don't leak file path
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] beautifier: don't leak file path
- Date: Tue, 21 Feb 2017 00:04:45 +0000 (UTC)
commit cd07ab3b8ea192a689e286212e7da9fb16e0d1ba
Author: Matthew Leeds <mleeds redhat com>
Date: Mon Feb 20 17:59:13 2017 -0600
beautifier: don't leak file path
plugins/beautifier/gb-beautifier-process.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/beautifier/gb-beautifier-process.c b/plugins/beautifier/gb-beautifier-process.c
index 03bd264..2c16952 100644
--- a/plugins/beautifier/gb-beautifier-process.c
+++ b/plugins/beautifier/gb-beautifier-process.c
@@ -151,7 +151,7 @@ gb_beautifier_process_create_generic (GbBeautifierWorkbenchAddin *self,
GError *error)
{
GSubprocess *subprocess = NULL;
- gchar *src_path;
+ g_autofree gchar *src_path = NULL;
g_assert (GB_IS_BEAUTIFIER_WORKBENCH_ADDIN (self));
g_assert (state != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]