Closed memory leak with error while creating IsoFile object. Coverity CID 12574.
This commit is contained in:
parent
78d2c02ad8
commit
a6542e5fa9
@ -76,8 +76,11 @@ int default_create_file(IsoNodeBuilder *builder, IsoImage *image,
|
||||
if ((int) strlen(name) > image->truncate_length) {
|
||||
ret = iso_truncate_rr_name(image->truncate_mode,
|
||||
image->truncate_length, name, 0);
|
||||
if (ret < 0)
|
||||
if (ret < 0) {
|
||||
iso_stream_unref(stream);
|
||||
free(name);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
ret = iso_node_new_file(name, stream, &node);
|
||||
if (ret < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user