Fix a double free.
authorGerald Combs <gerald@wireshark.org>
Tue, 21 Feb 2017 17:57:16 +0000 (09:57 -0800)
committerGuy Harris <guy@alum.mit.edu>
Tue, 21 Feb 2017 19:03:43 +0000 (19:03 +0000)
commit012a179785abada629fa324652755c6acb51be74
treeaae93d60d53ba7dd5aabfbad2b80ce3d3fb0df1d
parentf04e7702c48f1c57568f1c6c21a093e71513b2c2
Fix a double free.

In create_persconffile_profile, pf_dir_path_copy needs to be allocated
separately since the subsequent call to get_dirname is destructive. Add
back a call to g_strdup. This should hopefully fix a crash in the Win32
buildbot.

Change-Id: I591b5845032c9b8a5324bf6ac60fc43d1e92ac2e
Reviewed-on: https://code.wireshark.org/review/20231
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wsutil/filesystem.c