All of lore.kernel.org
 help / color / mirror / Atom feed
* lib/argv_split.c : should argv be kfree'ed ?
@ 2014-06-28 21:52 Toralf Förster
  2014-06-28 22:04 ` Mateusz Guzik
  0 siblings, 1 reply; 4+ messages in thread
From: Toralf Förster @ 2014-06-28 21:52 UTC (permalink / raw)
  To: Linux Kernel

/me wonders if this patch is needed here :


diff --git a/lib/argv_split.c b/lib/argv_split.c
index e927ed0..7de4cb4 100644
--- a/lib/argv_split.c
+++ b/lib/argv_split.c
@@ -85,6 +85,7 @@ char **argv_split(gfp_t gfp, const char *str, int *argcp)
                        *argv++ = argv_str;
                }
        }
+       kfree (argv);
        *argv = NULL;

        if (argcp)

-- 
Toralf


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-29 15:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-28 21:52 lib/argv_split.c : should argv be kfree'ed ? Toralf Förster
2014-06-28 22:04 ` Mateusz Guzik
2014-06-29 14:40   ` Toralf Förster
2014-06-29 15:37     ` Mateusz Guzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.