In 0.83git now. Fix minor leaks in libcdio 0.82 detected by cppcheck

via Eric Sesterhenn.
This commit is contained in:
R. Bernstein
2009-10-27 21:00:51 -04:00
parent 5ead040aea
commit 273ba31e3a
11 changed files with 19 additions and 7 deletions

View File

@@ -194,8 +194,10 @@ iso9660_open_ext_private (const char *psz_path,
error:
if (p_iso && p_iso->stream) {
cdio_stdio_destroy(p_iso->stream);
free(p_iso);
if (p_iso) free(p_iso);
}
return NULL;
}