mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fix double free
This commit is contained in:
@@ -130,8 +130,10 @@ static int unicode_map_create(directory_config *dcfg, char **error_msg)
|
|||||||
|
|
||||||
apr_file_close(u_map->map);
|
apr_file_close(u_map->map);
|
||||||
|
|
||||||
free(buf);
|
if(buf) {
|
||||||
buf = NULL;
|
free(buf);
|
||||||
|
buf = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user