mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
dep/rcheevos: Destroy parse state in rc_find_next_classification()
Fixes memory leak.
This commit is contained in:
@@ -134,10 +134,12 @@ static int rc_find_next_classification(const char* memaddr) {
|
||||
break;
|
||||
|
||||
default:
|
||||
rc_destroy_parse_state(&parse);
|
||||
return classification;
|
||||
}
|
||||
} while (*memaddr++ == '_');
|
||||
|
||||
rc_destroy_parse_state(&parse);
|
||||
return RC_CONDITION_CLASSIFICATION_OTHER;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user