diff --git a/gst/rtsp/rtspextreal.c b/gst/rtsp/rtspextreal.c
index e9bfb2c..ab2e9d7 100644
--- a/gst/rtsp/rtspextreal.c
+++ b/gst/rtsp/rtspextreal.c
@@ -913,3 +913,9 @@ rtsp_ext_real_get_context (void)
 
   return (RTSPExtensionCtx *) res;
 }
+
+void
+rtsp_ext_real_free_context (RTSPExtensionCtx *ctx)
+{
+  g_free (ctx);
+}
diff --git a/gst/rtsp/rtspextreal.h b/gst/rtsp/rtspextreal.h
index 2e8bf2f..e842e2f 100644
--- a/gst/rtsp/rtspextreal.h
+++ b/gst/rtsp/rtspextreal.h
@@ -48,6 +48,7 @@ G_BEGIN_DECLS
 #include "rtspext.h"
 
 RTSPExtensionCtx*     rtsp_ext_real_get_context    (void);
+void                  rtsp_ext_real_free_context   (RTSPExtensionCtx*);
 
 G_END_DECLS
 
