summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Xv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Xv.c b/src/Xv.c
index d92bd71..3c999a1 100644
--- a/src/Xv.c
+++ b/src/Xv.c
@@ -381,6 +381,7 @@ XvQueryEncodings(
u.buffer += (sz_xvEncodingInfo + 3) & ~3;
if ( (name = (char *)Xmalloc(size+1)) == NULL) {
+ XvFreeEncodingInfo(pes);
Xfree(buffer);
UnlockDisplay(dpy);
SyncHandle();