Skip to content
Snippets Groups Projects
Commit ade05a08 authored by Morris Jette's avatar Morris Jette
Browse files

Fix memory leak reported by CLANG

parent 513b23ba
No related branches found
No related tags found
No related merge requests found
......@@ -86,11 +86,12 @@ extern int unpack_slurmd_conf_lite_no_alloc(slurmd_conf_t *conf, Buf buffer)
{
uint32_t uint32_tmp;
uint16_t protocol_version;
char *ver_str;
char *ver_str = NULL;
safe_unpackstr_xmalloc(&ver_str, &uint32_tmp, buffer);
if (ver_str && !xstrcmp(ver_str, PROTOCOL_VERSION)) {
safe_unpack16(&protocol_version, buffer);
xfree(ver_str);
} else {
/* Kludge to add protocol version in existing data structure:
* use "hostname" as a version marker. Eliminate this in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment