mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:50:12 +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);
|
||||
|
||||
for(i=0; i<cfg.max_connections; i++){
|
||||
if(sessions[i]) free_smtp_session(sessions[i]);
|
||||
if(sessions){
|
||||
for(i=0; i<cfg.max_connections; i++){
|
||||
if(sessions[i]) free_smtp_session(sessions[i]);
|
||||
}
|
||||
|
||||
free(sessions);
|
||||
}
|
||||
|
||||
if(sessions) free(sessions);
|
||||
if(events) free(events);
|
||||
|
||||
syslog(LOG_PRIORITY, "%s has been terminated", PROGNAME);
|
||||
|
Loading…
Reference in New Issue
Block a user