From: Dmitry Eremin Date: Fri, 8 Apr 2016 15:32:34 +0000 (+0300) Subject: LU-7999 utils: fix double free the pointer X-Git-Tag: 2.8.53~15 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2ada939e5aad7d381bee7894aa3a258cf317e95d 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 --- 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; }