mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fix double free
This commit is contained in:
parent
885eeecefb
commit
034bf19121
@ -130,8 +130,10 @@ static int unicode_map_create(directory_config *dcfg, char **error_msg)
|
||||
|
||||
apr_file_close(u_map->map);
|
||||
|
||||
free(buf);
|
||||
buf = NULL;
|
||||
if(buf) {
|
||||
free(buf);
|
||||
buf = NULL;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user