Skip to content

Commit

Permalink
Svace Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pillip8282 committed Aug 29, 2017
1 parent 602de0e commit 5205be2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions apps/examples/easysetup/easysetup_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,11 @@ static void http_post_ctrl_cb(struct http_client_t *client, struct http_req_mess
}
}
cJSON_Delete(request_json);
}

if (msg->encoding == HTTP_CHUNKED_ENCODING && msg->entity[0] != '\0') {
g_stop_easysetup = stop_val;
return;
if (msg->encoding == HTTP_CHUNKED_ENCODING && msg->entity[0] != '\0') {
g_stop_easysetup = stop_val;
return;
}
}

http_send_response(client, 200, NULL, NULL);
Expand Down
3 changes: 1 addition & 2 deletions apps/examples/iperf/iperf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ int iperf_main(int argc, char **argv)
}

if (run(test) < 0) {
iperf_free_test(test);
printf("error - %s\n", iperf_strerror(i_errno));
goto main_exit;
}
Expand Down Expand Up @@ -164,9 +163,9 @@ static int run(struct iperf_test *test)
case 'c':
if (iperf_run_client(test) < 0) {
close(test->ctrl_sck);
iperf_client_end(test);
iperf_free_test(test);
printf("error - %s\n", iperf_strerror(i_errno));
iperf_client_end(test);
goto run_exit;
}
break;
Expand Down
2 changes: 1 addition & 1 deletion apps/netutils/dhcpc/dhcpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void *dhcpc_open(const char *intf)

pdhcpc->sockfd = socket(PF_INET, SOCK_DGRAM, 0);
if (pdhcpc->sockfd < 0) {
nvdbg("socket handle %d\n", ret);
nvdbg("get the socket handle fail\n");
free(pdhcpc);
return NULL;
}
Expand Down
3 changes: 1 addition & 2 deletions os/net/tls/easy_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ tls_ctx *TLSCtx(tls_cred *cred)
return ctx;
errout:
TLSCtx_free(ctx);
TLS_FREE(ctx);

return NULL;
}
Expand Down Expand Up @@ -381,7 +380,7 @@ tls_session *TLSSession(int fd, tls_ctx *ctx, tls_opt *opt)
return session;
errout:
TLSSession_free(session);
TLS_FREE(session);

return NULL;
}

Expand Down

0 comments on commit 5205be2

Please sign in to comment.