forked from github/server
CID 22522, 22520 Resource leak
helping coverity scan to understand this code
This commit is contained in:
parent
66e43caf9d
commit
e14cc50252
|
@ -187,6 +187,7 @@ resource_type *rt_get_or_create(const char *name) {
|
|||
else {
|
||||
rtype->_name = _strdup(name);
|
||||
rt_register(rtype);
|
||||
return rt_find(name);
|
||||
}
|
||||
}
|
||||
return rtype;
|
||||
|
|
Loading…
Reference in New Issue