c
bitmap_free(cdev->watched_lines);
cdev->watched_lines = NULL; // Prevent accidental use after free
