mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
If strdup failed, don't try and free the wrong thing.
This commit is contained in:
parent
3d4b80da4e
commit
7c5cb6be8c
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ _citrus_mapper_create_area(
|
|||
ma->ma_dir = strdup(area);
|
||||
if (ma->ma_dir == NULL) {
|
||||
ret = errno;
|
||||
free(ma->ma_dir);
|
||||
free(ma);
|
||||
goto quit;
|
||||
}
|
||||
_CITRUS_HASH_INIT(&ma->ma_cache, CM_HASH_SIZE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue