[SCM] seq24/master.stable: debian/patches/02-sched_param_memory_leaks.patch: Fix sched_param memory leaks, patch taken from upstream's bzr.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Mon Dec 6 17:42:43 UTC 2010
The following commit has been merged in the master.stable branch:
commit 9af6793b08669b300f748cb5723d2af25976bbaf
Author: Alessio Treglia <alessio at debian.org>
Date: Mon Dec 6 18:42:08 2010 +0100
debian/patches/02-sched_param_memory_leaks.patch: Fix sched_param memory leaks, patch taken from upstream's bzr.
diff --git a/debian/patches/02-sched_param_memory_leaks.patch b/debian/patches/02-sched_param_memory_leaks.patch
new file mode 100644
index 0000000..15298e8
--- /dev/null
+++ b/debian/patches/02-sched_param_memory_leaks.patch
@@ -0,0 +1,52 @@
+Description: Fix sched_param memory leaks.
+Origin: upstream, http://bazaar.launchpad.net/~seq24team/seq24/trunk/revision/92
+---
+ src/perform.cpp | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+--- seq24.orig/src/perform.cpp
++++ seq24/src/perform.cpp
+@@ -998,17 +998,17 @@ output_thread_func(void *a_pef )
+ perform *p = (perform *) a_pef;
+ assert(p);
+
+- struct sched_param *schp = new sched_param;
++ struct sched_param schp;
+ /*
+ * set the process to realtime privs
+ */
+
+ if ( global_priority ){
+
+- memset(schp, 0, sizeof(sched_param));
+- schp->sched_priority = 1;
++ memset(&schp, 0, sizeof(sched_param));
++ schp.sched_priority = 1;
+
+- if (sched_setscheduler(0, SCHED_FIFO, schp) != 0) {
++ if (sched_setscheduler(0, SCHED_FIFO, &schp) != 0) {
+
+ printf("output_thread_func: couldnt sched_setscheduler(FIFO), you need to be root.\n");
+ pthread_exit(0);
+@@ -1556,17 +1556,17 @@ input_thread_func(void *a_pef )
+ assert(p);
+
+
+- struct sched_param *schp = new sched_param;
++ struct sched_param schp;
+ /*
+ * set the process to realtime privs
+ */
+
+ if ( global_priority ){
+
+- memset(schp, 0, sizeof(sched_param));
+- schp->sched_priority = 1;
++ memset(&schp, 0, sizeof(sched_param));
++ schp.sched_priority = 1;
+
+- if (sched_setscheduler(0, SCHED_FIFO, schp) != 0) {
++ if (sched_setscheduler(0, SCHED_FIFO, &schp) != 0) {
+
+ printf("input_thread_func: couldnt sched_setscheduler(FIFO), you need to be root.\n");
+ pthread_exit(0);
diff --git a/debian/patches/series b/debian/patches/series
index ea647d6..6a89c6c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
01-gtkmm_2.19.patch
+02-sched_param_memory_leaks.patch
--
seq24 packaging
More information about the pkg-multimedia-commits
mailing list