diff options
Diffstat (limited to 'cmds-subvolume.c')
-rw-r--r-- | cmds-subvolume.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-subvolume.c b/cmds-subvolume.c index a87bcc5a..af04a6b8 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -158,13 +158,13 @@ static int cmd_subvol_create(int argc, char **argv) e = errno; close(fddst); + free(inherit); if(res < 0 ){ fprintf( stderr, "ERROR: cannot create subvolume - %s\n", strerror(e)); return 11; } - free(inherit); return 0; } @@ -604,13 +604,13 @@ static int cmd_snapshot(int argc, char **argv) close(fd); close(fddst); + free(inherit); if(res < 0 ){ fprintf( stderr, "ERROR: cannot snapshot '%s' - %s\n", subvol, strerror(e)); return 11; } - free(inherit); return 0; } |