Added free()'s

git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@329 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
codemaster 2004-11-22 21:15:00 +00:00
parent 8aff440ce1
commit dc78602f40
2 changed files with 4 additions and 4 deletions

View File

@ -1406,9 +1406,9 @@ int parse_console(char *buf) {
printf("Type of command: %s || Command: %s \n",type,command);
free(buf);
free(type);
free(command);
if(buf) free(buf);
if(type) free(type);
if(command) free(command);
return 0;
}

View File

@ -31,7 +31,7 @@ unsigned char* jstrescape (unsigned char* pt) {
}
}
pt[j++] = '\0';
free (ptr);
if(ptr) free(ptr);
return (unsigned char*) &pt[0];
}