]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Remove possible free() before data access.
authorAdam Sutton <dev@adamsutton.me.uk>
Fri, 25 May 2012 16:24:10 +0000 (17:24 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Fri, 25 May 2012 16:24:10 +0000 (17:24 +0100)
src/epg.c

index e2a6bd14541e848563a856ef8515b92498628aca..6fb320a865e64e441368d90c4a3949428c00ccfc 100644 (file)
--- a/src/epg.c
+++ b/src/epg.c
@@ -1044,9 +1044,9 @@ static void _epg_channel_timer_callback ( void *p )
     /* Expire */
     if ( ebc->stop <= dispatch_clock ) {
       RB_REMOVE(&ec->schedule, eo, glink);
-      eo->putref(eo);
       tvhlog(LOG_DEBUG, "epg", "expire event %lu from %s",
              eo->id, ec->_.uri);
+      eo->putref(eo);
       continue; // skip to next
 
     /* No now */