summaryrefslogtreecommitdiff
path: root/sysutils/genimage/files/patch-image-rauc.c
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-01-06 07:31:22 -0800
committerYuri Victorovich <yuri@FreeBSD.org>2023-01-06 10:17:45 -0800
commitf5858d0bce93eaa9bc455da3382a34b778939cd6 (patch)
tree46e79663e448891c2a9a44664695939bba117d68 /sysutils/genimage/files/patch-image-rauc.c
parentdevel/fnm: New port: Fast and simple Node.js version manager, built in Rust (diff)
sysutils/genimage: New port: Tool to generate multiple filesystem and flash images from a tree
Diffstat (limited to 'sysutils/genimage/files/patch-image-rauc.c')
-rw-r--r--sysutils/genimage/files/patch-image-rauc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/genimage/files/patch-image-rauc.c b/sysutils/genimage/files/patch-image-rauc.c
new file mode 100644
index 000000000000..225db5c40bd0
--- /dev/null
+++ b/sysutils/genimage/files/patch-image-rauc.c
@@ -0,0 +1,11 @@
+--- image-rauc.c.orig 2023-01-06 17:59:29 UTC
++++ image-rauc.c
+@@ -95,7 +95,7 @@ static int rauc_generate(struct image *image)
+ }
+
+ /* create parent directories if target needs it */
+- path = strdupa(target);
++ path = strdup(target); // XXX causes memory leak
+ tmp = strrchr(path, '/');
+ if (tmp) {
+ *tmp = '\0';