projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid freeing uninitialized pointer. Add -r option to trpc.
[trust_router.git]
/
trp
/
trpc.c
diff --git
a/trp/trpc.c
b/trp/trpc.c
index
aab9e21
..
ef5af85
100644
(file)
--- a/
trp/trpc.c
+++ b/
trp/trpc.c
@@
-56,8
+56,6
@@
int trpc_send_msg (TRPC_INSTANCE *trpc,
int *resp_handler(),
void *cookie)
{
- char *resp_buf=NULL;
- size_t resp_buflen=0;
int err=0;
int rc=0;
@@
-75,7
+73,5
@@
int trpc_send_msg (TRPC_INSTANCE *trpc,
error:
rc = -1;
cleanup:
- if (resp_buf)
- free(resp_buf);
return rc;
}