Check for NULL pointer return.
Spotted by: marcus
This commit is contained in:
parent
940c638f93
commit
90d93f7141
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146561
@ -368,6 +368,8 @@ geom_gettree(struct gmesh *gmp)
|
||||
int error;
|
||||
|
||||
p = geom_getxml();
|
||||
if (p == NULL)
|
||||
return (errno);
|
||||
error = geom_xml2tree(gmp, p);
|
||||
free(p);
|
||||
return (error);
|
||||
|
Loading…
Reference in New Issue
Block a user