Skip to content

Commit

Permalink
Cleaning GeoIP databases
Browse files Browse the repository at this point in the history
  • Loading branch information
eugpermar committed May 18, 2015
1 parent 21edda4 commit 2238c7e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/output-plugins/spo_alert_json.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,16 @@ static void AlertJSONCleanup(int signal, void *arg, const char* msg)
KafkaLog_FlushAll(data->kafka);
KafkaLog_Term(data->kafka);
}

if(data->gi)
GeoIP_delete(data->gi);
if(data->gi_org)
GeoIP_delete(data->gi_org);
if(data->gi6)
GeoIP_delete(data->gi6);
if(data->gi6_org)
GeoIP_delete(data->gi6_org);

free(data->jsonargs);
freeNumberStrAssocList(data->hosts);
freeNumberStrAssocList(data->nets);
Expand Down

0 comments on commit 2238c7e

Please sign in to comment.