summaryrefslogtreecommitdiff
path: root/Incremental.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2012-02-21 13:02:22 +0100
committerNeilBrown <neilb@suse.de>2012-02-22 07:14:36 +1100
commit9200d418d049aff77b3d0ad8f30f1a16adc56030 (patch)
tree05015a25430f18934d39f9d0f29073a5e4367ac4 /Incremental.c
parent178950eacc814d50cbc61cd70ebb346aa67e2a03 (diff)
avoid double-free upon "old buggy kernel" sysfs_read failure
* Incremental.c (Incremental): On sysfs_read failure, don't call sysfs_free(sra) just before "goto out_unlock", since that very same "sra" is freed the same way by the clean-up code below. Signed-off-by: Jim Meyering <meyering@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Incremental.c')
-rw-r--r--Incremental.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Incremental.c b/Incremental.c
index b457bf38..836a6f1f 100644
--- a/Incremental.c
+++ b/Incremental.c
@@ -325,7 +325,6 @@ int Incremental(char *devname, int verbose, int runstop,
fprintf(stderr, Name
": You have an old buggy kernel which cannot support\n"
" --incremental reliably. Aborting.\n");
- sysfs_free(sra);
rv = 2;
goto out_unlock;
}