On Wed, Mar 27, 2013 at 03:16:37PM +0100, Vaclav Pavlin wrote: > From: Václav Pavlín <[email protected]> > > --- > src/shared/util.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/shared/util.c b/src/shared/util.c > index 0444cf4..b724959 100644 > --- a/src/shared/util.c > +++ b/src/shared/util.c > @@ -5733,6 +5733,7 @@ int create_tmp_dir(char template[], char** dir_name) { > return 0; > fail1: > rmdir(dt); > + free(dt); > fail2: > rmdir(template); > return r; Applied this one with a tweak to not call rmdir() unless mkdir() succeeded.
Zbyszek _______________________________________________ systemd-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/systemd-devel
