hud: plug memory leak on error path

pull/587/head
nick black 4 years ago
parent c958883a0e
commit ee196c299d
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -363,6 +363,7 @@ int hud_schedule(const char* demoname){
}
elem** hook = hud_print_finished(&line);
if(hook == NULL){
free(cure);
return -1;
}
*hook = cure;

Loading…
Cancel
Save