summaryrefslogtreecommitdiff
path: root/examples/sample-tether.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sample-tether.c')
-rw-r--r--examples/sample-tether.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/sample-tether.c b/examples/sample-tether.c
index 0e38c12ba..683f006c8 100644
--- a/examples/sample-tether.c
+++ b/examples/sample-tether.c
@@ -78,6 +78,7 @@ camera_tether(Camera *camera, GPContext *context) {
case GP_EVENT_UNKNOWN:
if (evtdata) {
printf("Unknown event: %s.\n", (char*)evtdata);
+ free(evtdata);
} else {
printf("Unknown event.\n");
}