about summary refs log tree commit diff stats
path: root/src/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
index 41628c4f..7888a1dc 100644
--- a/src/common.c
+++ b/src/common.c
@@ -79,6 +79,14 @@ auto_free_gchar(gchar** str)
 }
 
 void
+auto_free_gcharv(gchar*** args)
+{
+    if (args == NULL)
+        return;
+    g_strfreev(*args);
+}
+
+void
 auto_free_char(char** str)
 {
     if (str == NULL)