mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Fix some nasty memory errors.
Three cheers for valgrind!!!
This commit is contained in:
parent
5c79953a7e
commit
ea34a5b753
2 changed files with 2 additions and 3 deletions
|
@ -72,7 +72,7 @@ method_get_key (const void *meth, void *unused)
|
|||
static void
|
||||
method_free (void *_meth, void *unused)
|
||||
{
|
||||
method_t *meth = (method_t *) meth;
|
||||
method_t *meth = (method_t *) _meth;
|
||||
|
||||
free (meth->name);
|
||||
free (meth->types);
|
||||
|
|
|
@ -484,8 +484,7 @@ separate_compile (void)
|
|||
temp_files[i++] = save_string (output_file->str);
|
||||
err = compile_to_obj (*file, output_file->str, lang) || err;
|
||||
|
||||
free ((char *)*file);
|
||||
*file = strdup (output_file->str);
|
||||
*file = save_string (output_file->str);
|
||||
} else {
|
||||
if (options.compile)
|
||||
fprintf (stderr, "%s: %s: ignoring object file since linking "
|
||||
|
|
Loading…
Reference in a new issue