diff options
Diffstat (limited to 'record/record.c')
-rw-r--r-- | record/record.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/record/record.c b/record/record.c index 5bd46c29e..53bdfec71 100644 --- a/record/record.c +++ b/record/record.c @@ -1868,8 +1868,7 @@ bailout: if (si) { for (i = 0; i < maxSets; i++) - if (si[i].intervals) - free(si[i].intervals); + free(si[i].intervals); free(si); } if (pCanonClients && pCanonClients != (XID *)&stuff[1]) @@ -1955,8 +1954,7 @@ ProcRecordCreateContext(ClientPtr client) err = BadAlloc; } bailout: - if (pContext) - free(pContext); + free(pContext); return err; } /* ProcRecordCreateContext */ @@ -2352,7 +2350,7 @@ ProcRecordGetContext(ClientPtr client) bailout: for (i = 0; i < nRCAPs; i++) { - if (pRangeInfo[i].pRanges) free(pRangeInfo[i].pRanges); + free(pRangeInfo[i].pRanges); } free(pRangeInfo); return err; |