Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm/dist/libdrm PR/50560: David Binderman: ...
details: https://anonhg.NetBSD.org/src/rev/828ecedc8830
branches: trunk
changeset: 342295:828ecedc8830
user: christos <christos%NetBSD.org@localhost>
date: Tue Dec 15 12:33:03 2015 +0000
description:
PR/50560: David Binderman: fix memory leaks.
diffstat:
sys/external/bsd/drm/dist/libdrm/xf86drm.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 950cdfc7d4e0 -r 828ecedc8830 sys/external/bsd/drm/dist/libdrm/xf86drm.c
--- a/sys/external/bsd/drm/dist/libdrm/xf86drm.c Tue Dec 15 12:30:34 2015 +0000
+++ b/sys/external/bsd/drm/dist/libdrm/xf86drm.c Tue Dec 15 12:33:03 2015 +0000
@@ -1354,8 +1354,11 @@
}
res.contexts = list;
- if (drmIoctl(fd, DRM_IOCTL_RES_CTX, &res))
+ if (drmIoctl(fd, DRM_IOCTL_RES_CTX, &res)) {
+ drmFree(list);
+ drmFree(retval);
return NULL;
+ }
for (i = 0; i < res.count; i++)
retval[i] = list[i].handle;
Home |
Main Index |
Thread Index |
Old Index