Avoid freeing uninitialized pointer. Add -r option to trpc.
[trust_router.git] / trp / trpc.c
index aab9e21..ef5af85 100644 (file)
@@ -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;
 }