From 2ada939e5aad7d381bee7894aa3a258cf317e95d Mon Sep 17 00:00:00 2001 From: Dmitry Eremin Date: Fri, 8 Apr 2016 18:32:34 +0300 Subject: [PATCH] LU-7999 utils: fix double free the pointer Object 'uuids' was freed at line 1895 after being freed by calling 'realloc' at line 1892. Change-Id: I2549f2cb0d2e1a2e4707c4d54d37c90ac099f375 Signed-off-by: Dmitry Eremin Reviewed-on: http://review.whamcloud.com/19409 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lustre/utils/liblustreapi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c index dd15d55..eebb848 100644 --- a/lustre/utils/liblustreapi.c +++ b/lustre/utils/liblustreapi.c @@ -1905,7 +1905,6 @@ retry_get_uuids: uuids_temp = realloc(uuids, obdcount * sizeof(struct obd_uuid)); if (uuids_temp != NULL) { - free(uuids); uuids = uuids_temp; goto retry_get_uuids; } -- 1.8.3.1