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 {
|
else {
|
||||||
rtype->_name = _strdup(name);
|
rtype->_name = _strdup(name);
|
||||||
rt_register(rtype);
|
rt_register(rtype);
|
||||||
|
return rt_find(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return rtype;
|
return rtype;
|
||||||
|
|
Loading…
Reference in New Issue