diff --git a/source/bforce/prot_emsi_misc.c b/source/bforce/prot_emsi_misc.c index 7cb6c4a..c6422d0 100644 --- a/source/bforce/prot_emsi_misc.c +++ b/source/bforce/prot_emsi_misc.c @@ -518,6 +518,7 @@ int emsi_parsedat(char *emsi_dat, s_emsi *emsi) { int i; char *tmp, *p, *q, *n, *otmp; + otmp = malloc(80); while( (tmp=get_field(&emsi_dat, '{', '}')) != NULL ) { @@ -769,7 +770,7 @@ int emsi_parsedat(char *emsi_dat, s_emsi *emsi) strnxcat(emsi->addons, "}", sizeof(emsi->addons)); } } /* end of while */ - + free(otmp); return(0); }