mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 06:10:30 -04:00
11 lines
327 B
C
11 lines
327 B
C
--- 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';
|