Probably want to free the VPs we remove from the control list, oops.
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Jun 2014 19:00:33 +0000 (20:00 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 17 Jun 2014 19:00:58 +0000 (20:00 +0100)
src/modules/rlm_cache/rlm_cache.c

index 998fe29..8f2a9f1 100644 (file)
@@ -760,7 +760,8 @@ done:
                case PW_CACHE_TTL:
                case PW_CACHE_READ_ONLY:
                case PW_CACHE_MERGE:
-                       fr_cursor_remove(&cursor);
+                       vp = fr_cursor_remove(&cursor);
+                       talloc_free(vp);
                        break;
                }
        }