Plug memory leak

Reported by:	coverity
CID:		1331664, 1331665
This commit is contained in:
Baptiste Daroussin 2016-04-20 21:37:32 +00:00
parent 0ce8c4a33c
commit f734685ea4

View File

@ -272,6 +272,7 @@ sesled(int argc, char **argv, bool setfault)
}
}
}
free(objp);
close(fd);
}
globfree(&g);
@ -424,6 +425,7 @@ objmap(int argc, char **argv __unused)
sbuf_delete(extra);
free(e_devname.elm_devnames);
}
free(e_ptr);
close(fd);
}
globfree(&g);