diff --git a/src/libsysprof-capture/sysprof-capture-writer.c b/src/libsysprof-capture/sysprof-capture-writer.c index 7926e6a4..01704880 100644 --- a/src/libsysprof-capture/sysprof-capture-writer.c +++ b/src/libsysprof-capture/sysprof-capture-writer.c @@ -988,7 +988,7 @@ handle_errno: if (fd != -1) { close (fd); - g_unlink (filename); + unlink (filename); } return false;