Diff between 99c6f5221800a48e8ce0b1e070e97d1c26a0f90b and b05c3bdf3ce65e9acadd3f4ccc5749949411fb70

Changed Files

File Additions Deletions Status
src/profile.c +6 -1 modified

Full Patch

diff --git a/src/profile.c b/src/profile.c
index 631a03f..656506a 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -2086,9 +2086,14 @@ static struct ext_profile *create_ext(const char *owner, const char *path,
 
 	ext = g_new0(struct ext_profile, 1);
 
+	ext->uuid = bt_name2string(uuid);
+	if (ext->uuid == NULL) {
+		g_free(ext);
+		return NULL;
+	}
+
 	ext->owner = g_strdup(owner);
 	ext->path = g_strdup(path);
-	ext->uuid = bt_name2string(uuid);
 
 	ext_set_defaults(ext);