Remove a couple more valgrind-caught memory leaks
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
$Id: cdrdao.c,v 1.17 2005/04/09 22:56:07 rocky Exp $
|
$Id: cdrdao.c,v 1.18 2005/06/08 08:07:00 rocky Exp $
|
||||||
|
|
||||||
Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com>
|
Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com>
|
||||||
toc reading routine adapted from cuetools
|
toc reading routine adapted from cuetools
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
(*.cue).
|
(*.cue).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static const char _rcsid[] = "$Id: cdrdao.c,v 1.17 2005/04/09 22:56:07 rocky Exp $";
|
static const char _rcsid[] = "$Id: cdrdao.c,v 1.18 2005/06/08 08:07:00 rocky Exp $";
|
||||||
|
|
||||||
#include "image.h"
|
#include "image.h"
|
||||||
#include "cdio_assert.h"
|
#include "cdio_assert.h"
|
||||||
@@ -1316,6 +1316,7 @@ cdio_open_cdrdao (const char *psz_cue_name)
|
|||||||
cdio_debug ("source name %s is not recognized as a TOC file",
|
cdio_debug ("source name %s is not recognized as a TOC file",
|
||||||
psz_cue_name);
|
psz_cue_name);
|
||||||
free(p_data);
|
free(p_data);
|
||||||
|
free(ret);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
$Id: nrg.c,v 1.16 2005/06/08 07:40:28 rocky Exp $
|
$Id: nrg.c,v 1.17 2005/06/08 08:07:00 rocky Exp $
|
||||||
|
|
||||||
Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
|
Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
|
||||||
Copyright (C) 2001, 2003 Herbert Valerio Riedel <hvr@gnu.org>
|
Copyright (C) 2001, 2003 Herbert Valerio Riedel <hvr@gnu.org>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
#include "_cdio_stdio.h"
|
#include "_cdio_stdio.h"
|
||||||
#include "nrg.h"
|
#include "nrg.h"
|
||||||
|
|
||||||
static const char _rcsid[] = "$Id: nrg.c,v 1.16 2005/06/08 07:40:28 rocky Exp $";
|
static const char _rcsid[] = "$Id: nrg.c,v 1.17 2005/06/08 08:07:00 rocky Exp $";
|
||||||
|
|
||||||
|
|
||||||
/* reader */
|
/* reader */
|
||||||
@@ -1275,6 +1275,7 @@ cdio_open_nrg (const char *psz_source)
|
|||||||
cdio_debug ("source name %s is not recognized as a NRG image",
|
cdio_debug ("source name %s is not recognized as a NRG image",
|
||||||
_data->psz_cue_name);
|
_data->psz_cue_name);
|
||||||
_free_nrg(_data);
|
_free_nrg(_data);
|
||||||
|
free(ret);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user