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
|
static void
|
||||||
method_free (void *_meth, void *unused)
|
method_free (void *_meth, void *unused)
|
||||||
{
|
{
|
||||||
method_t *meth = (method_t *) meth;
|
method_t *meth = (method_t *) _meth;
|
||||||
|
|
||||||
free (meth->name);
|
free (meth->name);
|
||||||
free (meth->types);
|
free (meth->types);
|
||||||
|
|
|
@ -484,8 +484,7 @@ separate_compile (void)
|
||||||
temp_files[i++] = save_string (output_file->str);
|
temp_files[i++] = save_string (output_file->str);
|
||||||
err = compile_to_obj (*file, output_file->str, lang) || err;
|
err = compile_to_obj (*file, output_file->str, lang) || err;
|
||||||
|
|
||||||
free ((char *)*file);
|
*file = save_string (output_file->str);
|
||||||
*file = strdup (output_file->str);
|
|
||||||
} else {
|
} else {
|
||||||
if (options.compile)
|
if (options.compile)
|
||||||
fprintf (stderr, "%s: %s: ignoring object file since linking "
|
fprintf (stderr, "%s: %s: ignoring object file since linking "
|
||||||
|
|
Loading…
Reference in a new issue