[Core] scan-build: fix false-positive memory leak in switch_xml_set_attr_d and switch_xml_set_attr_d_buf

This commit is contained in:
Andrey Volk
2021-04-23 20:03:36 +03:00
parent 781180ff48
commit c35a3bb4db
4 changed files with 11 additions and 10 deletions

View File

@@ -4639,6 +4639,13 @@ SWITCH_DECLARE(switch_status_t) switch_digest_string(const char *digest_name, ch
return status;
}
char *switch_must_strdup(const char *_s)
{
char *s = strdup(_s);
switch_assert(s);
return s;
}
/* For Emacs:
* Local Variables:
* mode:c