Skip to content
Snippets Groups Projects
Commit 15a9c957 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Fixed two memory leaks.

parent 89f12e12
No related branches found
No related tags found
No related merge requests found
Sun Jan 17 02:56:47 1993 Per Cederqvist (ceder@konrad)
* isc_session.c (isc_remove): Fix memory leak: Free the list-head.
* isc_tcp.c (isc_tcp_destroy_fn): Fix another memory leak: Pop any
remaining handlers.
Sun May 31 01:49:22 1992 Per Cederqvist (ceder@lysator) Sun May 31 01:49:22 1992 Per Cederqvist (ceder@lysator)
* isc_master (isc_initialize): Allocate the master control block * isc_master (isc_initialize): Allocate the master control block
......
...@@ -185,6 +185,8 @@ isc_remove(IscMaster *mcb, ...@@ -185,6 +185,8 @@ isc_remove(IscMaster *mcb,
isl->next = NULL; isl->next = NULL;
} }
isc_free(isl);
return --scb->nlinks; return --scb->nlinks;
} }
......
...@@ -94,6 +94,9 @@ isc_tcp_destroy_fn(IscHandlerList *hl, ...@@ -94,6 +94,9 @@ isc_tcp_destroy_fn(IscHandlerList *hl,
isc_freeaddress(scb->info.tcp.laddr); isc_freeaddress(scb->info.tcp.laddr);
scb->info.tcp.laddr = NULL; scb->info.tcp.laddr = NULL;
} }
while (isc_pophandler(scb))
;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment