mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-26 08:50:13 +01:00
terminate fix for piler-smtp
Change-Id: I07592f4bc68549a0bdae155b8bff4035bdb213dd Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
parent
96625883bb
commit
7c3d659194
@ -46,11 +46,14 @@ void p_clean_exit(){
|
|||||||
|
|
||||||
if(listenerfd != -1) close(listenerfd);
|
if(listenerfd != -1) close(listenerfd);
|
||||||
|
|
||||||
|
if(sessions){
|
||||||
for(i=0; i<cfg.max_connections; i++){
|
for(i=0; i<cfg.max_connections; i++){
|
||||||
if(sessions[i]) free_smtp_session(sessions[i]);
|
if(sessions[i]) free_smtp_session(sessions[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sessions) free(sessions);
|
free(sessions);
|
||||||
|
}
|
||||||
|
|
||||||
if(events) free(events);
|
if(events) free(events);
|
||||||
|
|
||||||
syslog(LOG_PRIORITY, "%s has been terminated", PROGNAME);
|
syslog(LOG_PRIORITY, "%s has been terminated", PROGNAME);
|
||||||
|
Loading…
Reference in New Issue
Block a user