Skip to content
Snippets Groups Projects
Commit d763873d authored by Sebastien Ponce's avatar Sebastien Ponce Committed by Steven Murray
Browse files

Another set of fixes for coverity deffects. Concentrating on resource leaks this time

parent f61e287c
Branches
Tags
No related merge requests found
......@@ -214,6 +214,7 @@ int rmc_srv_findcart(char *req_data,
}
if ((repbuf = malloc (c * 18 + 4)) == NULL) {
sendrep (rpfd, MSG_ERR, RMC05);
free (element_info);
RETURN (ERMCUNREC);
}
sbp = repbuf;
......@@ -439,6 +440,7 @@ int rmc_srv_readelem(char *req_data,
}
if ((repbuf = malloc (c * 18 + 4)) == NULL) {
sendrep (rpfd, MSG_ERR, RMC05);
free (element_info);
RETURN (ERMCUNREC);
}
sbp = repbuf;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment