kopia lustrzana https://github.com/Hamlib/Hamlib
fix memory access after freeing
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2217 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.7
rodzic
4fb86ade33
commit
5403a48f6c
|
@ -2,7 +2,7 @@
|
||||||
* Hamlib KIT backend - Digital World Traveller DRM receiver description
|
* Hamlib KIT backend - Digital World Traveller DRM receiver description
|
||||||
* Copyright (c) 2005 by Stephane Fillod
|
* Copyright (c) 2005 by Stephane Fillod
|
||||||
*
|
*
|
||||||
* $Id: dwt.c,v 1.2 2005-11-01 23:40:35 fillods Exp $
|
* $Id: dwt.c,v 1.3 2007-09-18 19:34:43 fillods Exp $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as
|
* it under the terms of the GNU General Public License as
|
||||||
|
@ -322,13 +322,13 @@ int dwtdll_cleanup(RIG *rig)
|
||||||
if (!rig)
|
if (!rig)
|
||||||
return -RIG_EINVAL;
|
return -RIG_EINVAL;
|
||||||
|
|
||||||
|
/* Clean up the dll access */
|
||||||
|
FreeLibrary(priv->dll);
|
||||||
|
|
||||||
if (rig->state.priv)
|
if (rig->state.priv)
|
||||||
free(rig->state.priv);
|
free(rig->state.priv);
|
||||||
rig->state.priv = NULL;
|
rig->state.priv = NULL;
|
||||||
|
|
||||||
/* Clean up the dll access */
|
|
||||||
FreeLibrary(priv->dll);
|
|
||||||
|
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* Hamlib WiNRADiO backend - WR-G303 description
|
* Hamlib WiNRADiO backend - WR-G303 description
|
||||||
* Copyright (c) 2001-2004 by Stephane Fillod
|
* Copyright (c) 2001-2004 by Stephane Fillod
|
||||||
*
|
*
|
||||||
* $Id: g303.c,v 1.4 2004-08-23 19:48:41 fillods Exp $
|
* $Id: g303.c,v 1.5 2007-09-18 19:34:43 fillods Exp $
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or modify
|
* This library is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Library General Public License as
|
* it under the terms of the GNU Library General Public License as
|
||||||
|
@ -260,13 +260,13 @@ int g3_cleanup(RIG *rig)
|
||||||
if (!rig)
|
if (!rig)
|
||||||
return -RIG_EINVAL;
|
return -RIG_EINVAL;
|
||||||
|
|
||||||
|
/* Clean up the dll access */
|
||||||
|
FreeLibrary(priv->dll);
|
||||||
|
|
||||||
if (rig->state.priv)
|
if (rig->state.priv)
|
||||||
free(rig->state.priv);
|
free(rig->state.priv);
|
||||||
rig->state.priv = NULL;
|
rig->state.priv = NULL;
|
||||||
|
|
||||||
/* Clean up the dll access */
|
|
||||||
FreeLibrary(priv->dll);
|
|
||||||
|
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue