This crash has caused multiple live broadcasts to abort.
Please fix and release to stable.
From 5c114486a0de76136cd2518240c7ceda7c08c954 Mon Sep 17 00:00:00 2001
From: Jaak Ristioja <[email protected]>
Date: Sun, 1 Nov 2026 21:36:02 +0200
Subject: [PATCH] Fix allocator mismatch causing crashes when USB capture
devices reconnect
Signed-off-by: Jaak Ristioja <[email protected]>
---
debian/changelog | 8 ++++++++
debian/patches/linux-v4l2-Save-device-by-id-or-path.patch | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index d5d402ad7..74a20063e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,12 @@
+obs-studio (30.2.3+dfsg-3.3) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix allocator mismatch causing crashes when USB capture devices
+ reconnect. (Closes: #1151092)
+
+ -- Jaak Ristioja <[email protected]> Sun, 01 Nov 2026 21:19:10 +0200
+
obs-studio (30.2.3+dfsg-3.2) unstable; urgency=medium
* Non-maintainer upload.
* Backport upstream fix for FTBFS with FFmpeg 8. (Closes: #1115044)
diff --git a/debian/patches/linux-v4l2-Save-device-by-id-or-path.patch b/debian/patches/linux-v4l2-Save-device-by-id-or-path.patch
index 3b11b5fc6..4a032feca 100644
--- a/debian/patches/linux-v4l2-Save-device-by-id-or-path.patch
+++ b/debian/patches/linux-v4l2-Save-device-by-id-or-path.patch
@@ -430,9 +430,9 @@ Origin: https://github.com/obsproject/obs-studio/pull/6493
+ char *real_path = brealpath(full_path.array);
+
+ if (0 == strcmp(real_path, device_added_real_path)) {
+ ret_val = bstrdup(full_path.array);
-+ free(real_path);
++ bfree(real_path);
+ break;
+ }
+
+ bfree(real_path);
--
2.56.0