Fixes after coverity analysis
This commit is contained in:
parent
7b58c1c562
commit
0fff9d8ef5
13 changed files with 43 additions and 24 deletions
|
|
@ -1101,6 +1101,7 @@ clicon_rpc_get2(clixon_handle h,
|
|||
goto done;
|
||||
xml_sort(xd); /* Ensure attr is first */
|
||||
*xt = xd;
|
||||
xd = NULL;
|
||||
}
|
||||
retval = 0;
|
||||
done:
|
||||
|
|
@ -1115,6 +1116,8 @@ clicon_rpc_get2(clixon_handle h,
|
|||
xml_free(xret);
|
||||
if (msg)
|
||||
free(msg);
|
||||
if (xd)
|
||||
xml_free(xd);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue