file: Free fname_new when rename successful.
Plug a memory leak.
This commit is contained in:
parent
0d2e248a25
commit
356a6ab0ea
1
file.c
1
file.c
|
@ -4932,6 +4932,7 @@ cf_save_records(capture_file *cf, const char *fname, guint save_format,
|
||||||
#endif
|
#endif
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
g_free(fname_new);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If this was a temporary file, and we didn't do the save by doing
|
/* If this was a temporary file, and we didn't do the save by doing
|
||||||
|
|
Loading…
Reference in New Issue