summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-26 16:08:07 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2018-06-26 16:08:07 +0200
commitc4b7df41a9d5d597366885f81faec4a4a1804674 (patch)
treefb5ec1ac75d78ae703f80b7f79d68acf7f132c55 /src
parentd53c878fdbcaf0cc4708f64724df90568b445119 (diff)
downloaduca-c4b7df41a9d5d597366885f81faec4a4a1804674.tar.gz
uca-c4b7df41a9d5d597366885f81faec4a4a1804674.tar.bz2
uca-c4b7df41a9d5d597366885f81faec4a4a1804674.tar.xz
uca-c4b7df41a9d5d597366885f81faec4a4a1804674.zip
Fix even more minor leaks
Diffstat (limited to 'src')
-rw-r--r--src/uca-camera.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/uca-camera.c b/src/uca-camera.c
index 4a1f7f9..73ef52d 100644
--- a/src/uca-camera.c
+++ b/src/uca-camera.c
@@ -670,9 +670,6 @@ uca_camera_parse_arg_props (UcaCamera *camera, gchar **argv, guint argc, GError
assignment = g_regex_new ("\\s*([A-Za-z0-9-]*)=(.*)\\s*", 0, 0, error);
- if (*error)
- return FALSE;
-
g_value_register_transform_func (G_TYPE_STRING, G_TYPE_UCHAR, value_transform_uchar);
g_value_register_transform_func (G_TYPE_STRING, G_TYPE_INT, value_transform_int);
g_value_register_transform_func (G_TYPE_STRING, G_TYPE_UINT, value_transform_uint);
@@ -741,13 +738,17 @@ uca_camera_parse_arg_props (UcaCamera *camera, gchar **argv, guint argc, GError
success = FALSE;
}
- g_match_info_free (match);
g_free (prop);
g_free (string_value);
- if (!success)
+ if (!success) {
+ g_match_info_free (match);
+ g_regex_unref (assignment);
return FALSE;
+ }
}
+
+ g_match_info_free (match);
}
g_regex_unref (assignment);