# HG changeset patch # User Luke Schierer # Date 1048375729 0 # Node ID e6c7d67c1f3a39b83aaa4d8f35d74349c5bafc2a # Parent 4a689f8d3d2f47cb2310d48e58a62ce2c7ccbf15 [gaim-migrate @ 5199] Ari Pollak (sourceo) writes: "This fixes a small memleak in prefs.c." committer: Tailor Script diff -r 4a689f8d3d2f -r e6c7d67c1f3a src/prefs.c --- a/src/prefs.c Sat Mar 22 23:19:34 2003 +0000 +++ b/src/prefs.c Sat Mar 22 23:28:49 2003 +0000 @@ -2210,6 +2210,7 @@ { GError *error = NULL; char **argv; + gchar *progname; gboolean is_valid = FALSE; if (program == NULL || *program == '\0') { @@ -2226,10 +2227,12 @@ return FALSE; } - is_valid = g_find_program_in_path(argv[0]) != NULL; + progname = g_find_program_in_path(argv[0]); + is_valid = (progname != NULL); g_strfreev(argv); - + g_free(progname); + return is_valid; }