Skip to content

Commit bd1b660

Browse files
committed
dep/rcheevos: Destroy parse state in rc_find_next_classification()
Fixes memory leak.
1 parent e26ad17 commit bd1b660

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dep/rcheevos/src/rcheevos/condset.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,12 @@ static int rc_find_next_classification(const char* memaddr) {
134134
break;
135135

136136
default:
137+
rc_destroy_parse_state(&parse);
137138
return classification;
138139
}
139140
} while (*memaddr++ == '_');
140141

142+
rc_destroy_parse_state(&parse);
141143
return RC_CONDITION_CLASSIFICATION_OTHER;
142144
}
143145

0 commit comments

Comments
 (0)