X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Fexec.c;h=38ca88a0f26c687b5c55ba63b9515f8750e5fae9;hp=5da53a01831a406d07f947edd08a6399c4ce06fc;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/driver/exec.c b/driver/exec.c index 5da53a01..38ca88a0 100644 --- a/driver/exec.c +++ b/driver/exec.c @@ -1,5 +1,5 @@ /* exec.c --- executes a program in *this* pid, without an intervening process. - * xscreensaver, Copyright (c) 1991-2008 Jamie Zawinski + * xscreensaver, Copyright (c) 1991-2013 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -286,6 +286,7 @@ on_path_p (const char *program) strcat (p2, "/"); strcat (p2, cmd); result = (0 == stat (p2, &st)); + free (p2); if (result) goto DONE; token = strtok (0, ":");