rpms/hamlib/F-13 hamlib-1.2.10-vfo-copy.patch,NONE,1.1
Lucian Langa
lucilanga at fedoraproject.org
Sun May 9 10:48:28 UTC 2010
Author: lucilanga
Update of /cvs/pkgs/rpms/hamlib/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv24008
Added Files:
hamlib-1.2.10-vfo-copy.patch
Log Message:
add patch2 - fix double-free in cleanup in dummy module
hamlib-1.2.10-vfo-copy.patch:
dummy.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
--- NEW FILE hamlib-1.2.10-vfo-copy.patch ---
diff -Naur hamlib-1.2.10/dummy/dummy.c hamlib-1.2.10-mod/dummy/dummy.c
--- hamlib-1.2.10/dummy/dummy.c 2009-11-03 00:17:47.000000000 +0200
+++ hamlib-1.2.10-mod/dummy/dummy.c 2010-05-09 10:42:29.000000000 +0300
@@ -206,8 +206,12 @@
for (i=0; i<NB_CHAN; i++) {
free(priv->mem[i].ext_levels);
}
- free(priv->vfo_a.ext_levels);
- free(priv->vfo_b.ext_levels);
+ if (priv->vfo_a.ext_levels != priv->vfo_b.ext_levels) {
+ free(priv->vfo_a.ext_levels);
+ free(priv->vfo_b.ext_levels);
+ } else {
+ free(priv->vfo_a.ext_levels);
+ }
free(priv->ext_parms);
if (rig->state.priv)
More information about the scm-commits
mailing list