Skip to content

Commit 8089288

Browse files
committed
httpdinfo: fix resource leak
Coverity: CID 739676 (#1 of 1): Resource leak (RESOURCE_LEAK) At (18): Handle variable "client_socket" going out of scope leaks the handle. Signed-off-by: Ferry Huberts <[email protected]>
1 parent 44f896f commit 8089288

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/httpinfo/src/olsrd_httpinfo.c

-2
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,6 @@ parse_http_request(int fd, void *data __attribute__ ((unused)), unsigned int fla
537537
writetimer_entry = olsr_start_timer(100, 0, OLSR_TIMER_PERIODIC, &httpinfo_write_data, NULL, 0);
538538
}
539539
}
540-
abuf_free(&body_abuf);
541-
return;
542540

543541
close_connection:
544542
abuf_free(&body_abuf);

0 commit comments

Comments
 (0)